This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > January 2004 > XMLHTTP Object not working.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XMLHTTP Object not working.
=?Utf-8?B?QmFsYWppIFByYWJodSAuVA==?=

2004-01-22, 11:55 am

Hi All,

I am calling a ASP using XMLHTTP object from by webpage(JavaScript). The script is working fine in my workstation. The script is not working in a different workstation.

Details about IIS
===========
Directory Security - Set to Windows Authenication Mode.
Default Website is mapped to a virtual directory.

Problem Code
=========

function Acknowledge()
{
var TempXML=new ActiveXObject("Microsoft.xmldom");
var ReturnXML=new ActiveXObject("Microsoft.xmldom");
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

ErrorXML.selectSingleNode("ERROR/ROWID").text=ErrorRowId;
xmlhttp.Open("POST", "/centralerrors/Acknowledge.asp", false);
xmlhttp.Send(ErrorXML);
ReturnXML=xmlhttp.responseXML;
ResponseValue=1;
ReturnWithXML();

}

Please help.
Fran García

2004-01-22, 11:55 am

maybe it could be by any firewall in the other workstation.

check this.


"Balaji Prabhu .T" <anonymous@discussions.microsoft.com> escribió en el
mensaje news:EFD2C490-118A-46A7-AC0B-2FADDBD94058@microsoft.com...
quote:

> Hi All,
>
> I am calling a ASP using XMLHTTP object from by webpage(JavaScript). The


script is working fine in my workstation. The script is not working in a
different workstation.
quote:

>
> Details about IIS
> ===========
> Directory Security - Set to Windows Authenication Mode.
> Default Website is mapped to a virtual directory.
>
> Problem Code
> =========
>
> function Acknowledge()
> {
> var TempXML=new ActiveXObject("Microsoft.xmldom");
> var ReturnXML=new ActiveXObject("Microsoft.xmldom");
> var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
>
> ErrorXML.selectSingleNode("ERROR/ROWID").text=ErrorRowId;
> xmlhttp.Open("POST", "/centralerrors/Acknowledge.asp", false);
> xmlhttp.Send(ErrorXML);
> ReturnXML=xmlhttp.responseXML;
> ResponseValue=1;
> ReturnWithXML();
>
> }
>
> Please help.




Aaron Vance

2004-01-22, 11:55 am

You may want to force .async = false on the two DOM's you instantiated. (It
defaults to true)

I've had wierd behavior when I forget setting that property -- my code will
work sporadically. Because the resultset (ReturnXML) may or may not be
loaded at the client when the XML is returned.

You also may want to throw it into a try...catch clause to get the error
message when your code breaks on the other workstation. Posting the error
message that occurs on the other workstation would also be helpful to help
us debug what is happening.


"Balaji Prabhu .T" <anonymous@discussions.microsoft.com> wrote in message
news:EFD2C490-118A-46A7-AC0B-2FADDBD94058@microsoft.com...
quote:

> Hi All,
>
> I am calling a ASP using XMLHTTP object from by webpage(JavaScript). The


script is working fine in my workstation. The script is not working in a
different workstation.
quote:

>
> Details about IIS
> ===========
> Directory Security - Set to Windows Authenication Mode.
> Default Website is mapped to a virtual directory.
>
> Problem Code
> =========
>
> function Acknowledge()
> {
> var TempXML=new ActiveXObject("Microsoft.xmldom");
> var ReturnXML=new ActiveXObject("Microsoft.xmldom");
> var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
>
> ErrorXML.selectSingleNode("ERROR/ROWID").text=ErrorRowId;
> xmlhttp.Open("POST", "/centralerrors/Acknowledge.asp", false);
> xmlhttp.Send(ErrorXML);
> ReturnXML=xmlhttp.responseXML;
> ResponseValue=1;
> ReturnWithXML();
>
> }
>
> Please help.




Brian Staff

2004-01-22, 4:36 pm

It's possible there is no XMLHTTP component registered on that client.

http://www.microsoft.com/downloads/...5-B7ED-4C32-A44
3-EC56F10EE175&displaylang=en

Brian

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews