Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Location
    Loughborough (UK)
    Posts
    209
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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);

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts

    Re: Hold til Object Loaded?

    Originally posted by christrinder
    objGroups.async="false";
    try it without the quotes, that works for me
    I am the luckiest man in the world

  • #3
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •