Basically, I have a main page (parent page) with a link that opens up another page (child page) which contains buttons within it. What I want, is when the user clicks the button within the child page, the mysql database will be updated, then I want the parent page to be refreshed (displaying the updated values from the database).
I am currently using PHP for my server side programming. Can anyone suggest the best and simplest way to do this? Should it be done using AJAX? Please point me to the right direction.
Try This
I assume by child window you mean a window that was opened by code in the opener window, and the opener window is the parent window.
If so, you can use the following code in the child window:
window.openeris a reference to the window that opened the current window.