Re: Trying To Invoke a WebService



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/


.



Relevant Pages

  • Re: Trying To Invoke a WebService
    ... When I run the javascript code on my aspx page neither the "if ... I tried viewing those objects status but they do not appear to be valid objects in ASP.NET. ... 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 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. ...
    (comp.lang.javascript)
  • RE: unexpected job offer
    ... deliverer that service has failed (this can be a switch,mail server, server, ... "Wayne" wrote: ... > low-end desktop support jobs. ... How to handle if everyone lost internet access? ...
    (microsoft.public.cert.exam.mcse)
  • Re: Deployment Questions
    ... Blog: http://blog.Darkfalz.com ... "Wayne Wengert" wrote in message ... >> Curt Christianson ... >>>> FPSE on the server, FTP Access to the server, HTTP Upload access to ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: disabling controls during the postback...
    ... I use a javascript code to do this job. ... function DisableControls(){ ... > and server, the longer the delay) where the user may be oblivious and could ... > When the postback completes, any data entered in during this delay is lost. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: disabling controls during the postback...
    ... > I use a javascript code to do this job. ... > function DisableControls(){ ... >> and server, the longer the delay) where the user may be oblivious and ... >> When the postback completes, any data entered in during this delay is ...
    (microsoft.public.dotnet.framework.aspnet)