Thanks Bill,Got the answer for ASP and XMLHttp Pos

Results 1 to 2 of 2

Thread: Thanks Bill,Got the answer for ASP and XMLHttp Pos

  1. #1
    Join Date
    Dec 1969

    Default Thanks Bill,Got the answer for ASP and XMLHttp Pos

    just to recall 6/7/2002 &#039;s post<BR><BR>ASP and XMLHttp Post<BR>Here is my situation.. <BR>From the main page I am using XMLHTTP Post method to call the server side asp page to update a record,the ASP page is getting called and the record is updated but I&#039;m getting an error <BR>&#039;The data necessary to complete this operation is not yet available&#039; <BR>in the main page where I&#039;m checking the response from the Post. <BR>Here&#039;s my code (VBScript) <BR>set httpobj = CreateObject("Microsoft.XMLHTTP") <BR> "POST", "addressupdate.asp?userid=" & userid & "&userintid=" & userintid,false <BR>httpobj.send <BR>returnXML = httpobj.responseText --- getting error in this line.. <BR>Thanks for your help. <BR><BR>and Bill wrote..<BR><BR>I had the same problem...<BR>Bill Wilkinson - 6/7/2002 7:57:58 PM<BR>...when using POST with an older version of the component. <BR><BR>You might check to see if a newer version is available. <BR><BR>GET worked fine. But it *felt* to me like, when I used POST, it was ignoring my "false" value and trying to run asynchronously, which of course you can&#039;t do from a scripting language. <BR><BR><BR>and the ANSWER is<BR><BR>if the httpobj.responseText is just one character (for example "S" for "Success" etc.) then it&#039;s giving that weird error message.It&#039;s not giving any proplem if it&#039;s empty or more than one character,so always make your responsetext more than one character (like "Success" instead of "S" )<BR><BR>Thanks.

  2. #2
    Join Date
    Dec 1969

    Default I'll be darned!

    I wonder if it needs a NewLine character???<BR><BR>Well, whatever. I&#039;ll file this one away!<BR><BR>

Posting Permissions

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