|
|
 |
FN-FORUM: Ajax Question
date posted 28th May 2006 00:04
I have this bit of code which is called from Firefox. It works fine on a
page refresh but not when the browser is closed. It gets called ok as I
tried putting in an alert to check but data_transer_database_write.php
doesn't do anything. I am guessing that it is not getting there as the
Browser has closed - would I be right? I tried putting in a setimeout after
the send but that didn't make any difference.
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest()
var Transfered;
Transfered = Math.ceil(Bytes/Length) * Seconds;
xmlhttp.onreadystatechange = processReqChange;
xmlhttp.open("GET", "data_transer_database_write.php?Transfered=" +
Transfered + "&Video_Id=" + Video_Id + "&Client_Id=" + Client_Id, true);
xmlhttp.send(null);
}
Any ideas please
Thanks
Pam
|
 |
|