Re: Trying To Invoke a WebService
- From: "Wayne Wengert" <wayneSKIPSPAM@xxxxxxxxxxx>
- Date: Sat, 13 Aug 2005 10:20:46 -0600
Marttin;
Thanks for the response. I think I need to do some studying to get an
understanding of all the items you mentioned.
Wayne
"Martin Honnen" <mahotrash@xxxxxxxx> wrote in message
news:42fe139f$0$11761$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> Wayne Wengert wrote:
>> I found a code sample that allows you to use a 5 digit zip code to lookup
>> the correct city and state using a Web Service (ASP.NET). When I run the
>> javascript code (see below) on my aspx page neither the "if
>> (window.XMLHttpRequest)" nor the " else if (window.ActiveXObject) " is
>> true? I tried viewing those objects status but they do not appear to be
>> valid objects in ASP.NET.
>
> What you have below is client-side JavaScript code which is executed in
> the browser and has no relevance to ASP.NET which is executed on the
> server. Of course XMLHttpRequest respectively Microsoft.XMLHTTP are used
> to load data from a HTTP server but whether that server runs classic ASP
> or ASP.NET or JSP or PHP or no server side scripting framework at all is
> not relevant to using XMLHttpRequest or Microsoft.XMLHTTP on the client.
> So the statement "they do not appear to be valid objects in ASP.NET" does
> not really make sense, the client has to support the objects and
> XMLHttpRequest is supported by Mozilla, Netscape 7/8, Opera 8, Safari 1.2,
> Konqueror 3.3, and Microsoft.XMLHTTP by IE 5 and later on Windows.
>
>> <script language="Javascript">
>
>> if (window.XMLHttpRequest) {
>
>> } else if (window.ActiveXObject) {
>
> If something does not work as you want then it can have many reasons, if
> you use Mozilla or Firefox check the JavaScript console first.
>
>> loadXMLDoc('http://www.wengert.org/'
>
> You need to be aware that with normal security settings XMLHttpRequest can
> load data only from the same HTTP server as the HTML document with the
> script has been loaded from. So perhaps you are trying to access that web
> service on www.wengert.org with a script in a HTML document loaded from
> another server and then simply get no access.
>
> --
>
> Martin Honnen
> http://JavaScript.FAQTs.com/
.
- References:
- Trying To Invoke a WebService
- From: Wayne Wengert
- Re: Trying To Invoke a WebService
- From: Martin Honnen
- Trying To Invoke a WebService
- Prev by Date: Re: Trying To Invoke a WebService
- Next by Date: Re: How do I prevent IE Active Content warning message appearing?
- Previous by thread: Re: Trying To Invoke a WebService
- Index(es):
Relevant Pages
|