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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    MSXML2.ServerXMLHTTP

    I have two files, xm1.asp and xml2.asp

    xml1.asp

    Code:
    <%
    url = "http://www.domain.com/xml2.asp"
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
    xmlhttp.open "GET", url, true 
    xmlhttp.send "" 
    response.write xmlhttp.responseText
    set xmlhttp = nothing 
    %>
    xml2.asp
    Code:
    Hello World!
    xml1.asp and xml2.asp exist on two different web servers. Basically what I want xml1.asp to do is grab the contents of xml2.asp and response.write it.

    When I run xml1.asp I get:

    Code:
    msxml3.dll error '8000000a' 
    
    The data necessary to complete this operation is not yet available. 
    
    xml1.asp, line 6
    Line 6 is the response.write

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    A quick search of Google for your error turns up this information.

    http://jszen.blogspot.com/2005/03/xm...eadystate.html
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That seems to be JavaScript.

    I can't get this to work in ASP:

    xmlHTTP.onreadystatechange = handleStateChange

    I get Type mismatch: 'xmlhttp.onreadystatechange'

  • #4
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Since MS's XML HTTP system is built on the JS engine, the work very similarly.

    If you are getting a type mismatch, then that is not the same as the error that you posted above.

    Which one are you getting? The "data" issue or a "mismatch" issue?
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #5
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,065
    Thanks
    4
    Thanked 8 Times in 8 Posts
    Remove the "" after the xmlhttp.send.

    Code:
    <%
    url = "http://www.domain.com/xml2.asp"
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
    xmlhttp.open "GET", url, true 
    xmlhttp.send 
    response.write xmlhttp.responseText
    set xmlhttp = nothing 
    %>


  •  

    Posting Permissions

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