gimecoffee
MIS
- Mar 3, 2006
- 25
My onreadystatechange is calling the function updatePage(see below.)
response[0] js script returned by the server is
Everything works in IE but in FireFox the child hangs on the window.close() statement. If I click on the window that was suppose to close ALL Firefox (even unrelated) windows close. If I leave the winodw.close() statement out of the return code I can close the window manually without crashing FF.
Any suggestions
Rois
Code:
function updatePage() {
if(document.getElementById('readystate')){
document.getElementById('readystate').innerHTML='Ready State is '+doc.readyState;
}
if (doc.readyState == 4) {
if (doc.status == 200) {
var response = doc.responseText.split("|");
if (response[0]!="") {
eval(response[0]);
}
} else {
if(tried<3) {
getXML(file,str); tried++;
} else {
alert("Status code " + doc.status+"\n"+
"Server connection appears to be\n"+
"down. Try re-entering your request.");
close();
}
}
}
}
Code:
if(opener.prm06)opener.prm06['04']['posted']='2006-06-02';
if(opener.prm06)opener.prm06['04']['uid']='john';
window.close();
Any suggestions
Rois