Forum Moderators: open
OK,i define a array in frameA,and update the array data with the server's data/sec use frameB's data
the problem is:run it long time(between 3 hour~10 hour)
IE will be breakdown,i don't known what happened!
here is the frameB code:
===============================================
<script language=javascript>
function GetData()
{
//=======get server data
try
{
var ss='AppID=33';
var rs='';
var XML = new ActiveXObject("Microsoft.XMLHTTP");
XML.open("POST","check.asp",false);
XML.setRequestHeader("Content-Length",ss.length);
XML.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded")
XML.send(ss);
rs=XML.responseText;
//========check received str
parent.frameB.function...
//========schedule
setTimeout("GetData()",2000);
}
catch(err){alert("error!");}
finally{}
}
GetData();
</script>