Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-03-2003, 01:35 PM   PM User | #1
christrinder
Regular Coder

 
Join Date: Nov 2002
Location: Loughborough (UK)
Posts: 209
Thanks: 0
Thanked 0 Times in 0 Posts
christrinder is an unknown quantity at this point
Unhappy Hold til Object Loaded?

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);
christrinder is offline   Reply With Quote
Old 07-10-2003, 06:48 AM   PM User | #2
Roelf
Senior Coder

 
Join Date: Jun 2002
Location: Zwolle, The Netherlands
Posts: 1,110
Thanks: 2
Thanked 28 Times in 28 Posts
Roelf is on a distinguished road
Re: Hold til Object Loaded?

Quote:
Originally posted by christrinder
objGroups.async="false";
try it without the quotes, that works for me
Roelf is offline   Reply With Quote
Old 07-21-2003, 10:48 AM   PM User | #3
fredmv
Regular Coder

 
Join Date: Jul 2003
Location: Massachusetts
Posts: 472
Thanks: 0
Thanked 0 Times in 0 Posts
fredmv is an unknown quantity at this point
Yeah since it's a boolean value I don't think it should have quotes. JavaScript would consider it to be a string.
__________________
Moderator @ WebDeveloper.com
Mentor @ WebXpertz.net
fredmv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:43 AM.


Advertisement
Log in to turn off these ads.