S
sentinel
Hello,
I'm having problems refreshing a main window, and am not sure really
whether the solution will be Javascript or PHP related.
Firstly, I have a main file that calls a pop-up box which enables
comments to be made about certain images on the page. The pop-up makes
a connection to a MySQL database and the existing comments are put
into a PHP array and echoed to the screen.
I use a GET argument to send the image ID to the pop-up. If a name
instead a number is passed, it creates a new entry in the DB under
this name.
However, the main problem is that if the pop-up is closed down, unless
the main page is refreshed, it will still show '0' comments, and if
clicked again will pass the same GET arguments,, thus created another
entry with the same name.
What I need is to find a way of refreshing the main window when data
is posted from the pop-up window, so that the main page is always
showing accurate data.
Any suggestions ? I have tried things like 'window.opener.reload()'
but can't seem to get this to work.
Rgds
Neil.
I'm having problems refreshing a main window, and am not sure really
whether the solution will be Javascript or PHP related.
Firstly, I have a main file that calls a pop-up box which enables
comments to be made about certain images on the page. The pop-up makes
a connection to a MySQL database and the existing comments are put
into a PHP array and echoed to the screen.
I use a GET argument to send the image ID to the pop-up. If a name
instead a number is passed, it creates a new entry in the DB under
this name.
However, the main problem is that if the pop-up is closed down, unless
the main page is refreshed, it will still show '0' comments, and if
clicked again will pass the same GET arguments,, thus created another
entry with the same name.
What I need is to find a way of refreshing the main window when data
is posted from the pop-up window, so that the main page is always
showing accurate data.
Any suggestions ? I have tried things like 'window.opener.reload()'
but can't seem to get this to work.
Rgds
Neil.