...

View Full Version : Hold til Object Loaded?



christrinder
07-03-2003, 01:35 PM
Hi people,

I'm using an XML object (but please don't move the post there... noboy's ever there and besides, this is more DOM related!), but I don't think the data is loading in time before I'm using it. I searched Microsoft's MSDN, and found an event handler called 'ondataavailable', but I don't know how to use it. Has anybody got any suggestions or ideas? Thanks in advance for your help. Chris

current code....

var objGroupsHTTP = new ActiveXObject("Msxml2.XMLHTTP.4.0");
var objGroups = new ActiveXObject("MSXML2.DOMDocument.4.0");
objGroupsHTTP.open("POST", "http://...");
objGroups.async="false";
objGroups.loadXML(objGroupsHTTP.responseText);

Roelf
07-10-2003, 06:48 AM
Originally posted by christrinder
objGroups.async="false";
try it without the quotes, that works for me

fredmv
07-21-2003, 10:48 AM
Yeah since it's a boolean value I don't think it should have quotes. JavaScript would consider it to be a string.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum