Jump to content

Update


unidox

Recommended Posts

well heres my issue I have a mysql query with a while statement, so it prints all the users in a db and I have a popup to add/edit a user. And when the popup closes u have to refresh the page to have it show the updates. Is there a way I can have it refresh just the div, or even just the sql every x seconds?

 

I have a switch statement for $_GET['page'] so the refresh cant use GET otherwise it shows the default.

 

How will I go about doing this?

Link to comment
https://forums.phpfreaks.com/topic/78247-update/#findComment-396255
Share on other sites

Use javascript to detect the pop-up window close or add an event to the window close button that triggers an event on the main page to tell the page to retrieve the information from the remote script for an update and display it in the div....unless I am missing something that is about all you would need to do.

Link to comment
https://forums.phpfreaks.com/topic/78247-update/#findComment-396275
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.