Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML load method to slow

Status
Not open for further replies.

hdougl1

Programmer
Dec 6, 2000
54
0
0
US
I'm actually working on the examples from the Sams 24hrs xml series.
Right after using the xmldom load method I'm checking the state of the object if xmlDoc1.readyState=="4", which is false. The actuall return code is "1" Object is loading the data. I'm using javascript and placing a alert box right after the load statement to delay the the time before I check the state of the object before working with it. I need another delay method in javascript of have I done something wrong?
ex.
function LoadFile()
{
/* The ActiveXObject will be the one that links to the
message to be read. We load the filename that was selected.*/
var xmlDoc1=new ActiveXObject("microsoft.xmldom");
xmlDoc1.load(Select1.value);
alert("Pause");
if(xmlDoc1.readyState=="4")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top