Results 1 to 2 of 2

Thread: .load method help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    66

    .load method help

    Hi - I am using the following piece of code:

    <OBJECT width=0 height=0
    classid="clsid:550dda30-0541-11d2-9ca9-0060b0ec3d39"
    id="xmldso">
    </OBJECT>

    <SCRIPT for=window event=onload>
    var doc = xmldso.XMLDocument;
    doc.async=true
    doc.load("TestBindData.asp");
    if (doc.documentNode == null)
    {
    alert('error');
    }
    </SCRIPT>

    in my page, however ever time doc.documentNode is null but
    the data binds with the html element just fine. why is
    the documentNode null if it works allright?

    thanks

  2. #2
    WALDO
    Guest

    Question

    Perhaps because you want documentElement, not documentNode?

    Maybe it's because you have the async property set to true, therefore you're trying to query a property before it's done loading (asynchronously)

Posting Permissions

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



Click Here to Expand Forum to Full Width