Advanced Search

Results 1 to 2 of 2

Thread: load function

  1. #1
    Join Date
    Nov 2005
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default load function

    Hi,

    When I call like this

    set licxmldoc = server.CreateObject("Microsoft.XMLDOM")
    licxmldoc.async = false
    licxmldoc.load("http://www.w3schools.com/xml/note.xml")

    it does not work. But when I test the link on the browser, it works!


    Can somebody tell me why I cannot call?

    Thx
    Joe

  2. #2
    Join Date
    Nov 2006
    Location
    Philippines
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The syntax you posted was in ASP.

    This is the javascript equivalent of ur code.

    var licxmldo = new ActiveXObject("Microsoft.XMLHTTP"); //IE
    //var licxmldo = new XMLHttpRequest(); // mozilla
    licxmldoc.async = false;
    licxmldoc.open("GET", "http://www.w3schools.com/xml/note.xml", true);
    ........
    ........
    licxmldoc.send(null);


    You can search for AJAX code snippet for more reference.

Bookmarks

Posting Permissions

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