onLoad for webservice.htc

Discussion in 'ASP .Net Web Services' started by Thom Little, Dec 9, 2006.

  1. Thom Little

    Thom Little Guest

    The following page uses webservice.htc to invoke a proxy web service and it
    works perfectly in Internet Explorer and Netscape. Opera and Firefox
    apparently do not support onLoad.

    Does anyone have an example of how this type of call can be made in all four
    browsers (Internet Explorer, Netscape, Opera, and Firefox)?

    What was the source of your information?

    <html><head><title>Consume Count Service</title>
    <script>
    function tlaCL( strParm )
    {
    tlaCountService.useService( "Service/CountService.asmx?WSDL", "tlaCF");
    tlaCid = tlaCountService.tlaCF.callService("count", strParm );
    }
    function tlaCR( )
    {
    tlaCount.innerText = event.result.value ;
    }
    var tlaCid ;
    </script>
    <div id="tlaCountService" style="behavior:url(webservice.htc)"
    onresult="tlaCR()"></div>
    </head>
    <body onload="tlaCL('tlanet.net/index.html')" onresult="tlaCR( )">
    <center><span id="tlaCount">·</span></center>
    </body></html>

    --
    -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
    --
     
    Thom Little, Dec 9, 2006
    #1
    1. Advertising

  2. Thom Little

    Thom Little Guest

    Question moved to another newsgroup.

    --
    -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
    --

    "Thom Little" <> wrote in message
    news:u9$...
    > The following page uses webservice.htc to invoke a proxy web service and
    > it works perfectly in Internet Explorer and Netscape. Opera and Firefox
    > apparently do not support onLoad.
    >
    > Does anyone have an example of how this type of call can be made in all
    > four browsers (Internet Explorer, Netscape, Opera, and Firefox)?
    >
    > What was the source of your information?
    >
    > <html><head><title>Consume Count Service</title>
    > <script>
    > function tlaCL( strParm )
    > {
    > tlaCountService.useService( "Service/CountService.asmx?WSDL", "tlaCF");
    > tlaCid = tlaCountService.tlaCF.callService("count", strParm );
    > }
    > function tlaCR( )
    > {
    > tlaCount.innerText = event.result.value ;
    > }
    > var tlaCid ;
    > </script>
    > <div id="tlaCountService" style="behavior:url(webservice.htc)"
    > onresult="tlaCR()"></div>
    > </head>
    > <body onload="tlaCL('tlanet.net/index.html')" onresult="tlaCR( )">
    > <center><span id="tlaCount">·</span></center>
    > </body></html>
    >
    > --
    > -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
    > --
    >
    >
    >
     
    Thom Little, Dec 9, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cory
    Replies:
    2
    Views:
    1,320
    Eric Lawrence [MSFT]
    Feb 20, 2004
  2. al

    webservice.htc???

    al, Jun 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    437
    John Timney \(Microsoft MVP\)
    Jun 27, 2004
  3. batista
    Replies:
    1
    Views:
    923
    Laurent Bugnion
    Jan 26, 2006
  4. batista
    Replies:
    0
    Views:
    567
    batista
    Jan 26, 2006
  5. batista
    Replies:
    0
    Views:
    258
    batista
    Jan 26, 2006
Loading...

Share This Page