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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.