T
tgh003
I have been at this for hours now. Pulling my hair out.
I have a standard php page that has an onunload event on it. The
onunload event sends a xmlhttprequest that triggers a database update,
for simplicity lets say it updates a table:
UPDATE testtable SET testfield = '".$_GET['rand']."' where id = 1
This works just fine.
Then the next page you navigate to is supposed to call the testfield
from the database and it should display the newly updated value. It is
not. If you refresh the next page again you now get the correct newly
inserted value.
Does the onunload event prefetch the next page prior to executing the
onunload function???
Anyone have any ideas?? I cant find anything in the archives about
this.
Thanks.
I have a standard php page that has an onunload event on it. The
onunload event sends a xmlhttprequest that triggers a database update,
for simplicity lets say it updates a table:
UPDATE testtable SET testfield = '".$_GET['rand']."' where id = 1
This works just fine.
Then the next page you navigate to is supposed to call the testfield
from the database and it should display the newly updated value. It is
not. If you refresh the next page again you now get the correct newly
inserted value.
Does the onunload event prefetch the next page prior to executing the
onunload function???
Anyone have any ideas?? I cant find anything in the archives about
this.
Thanks.