From: Dave Young on
We're using the WebService behaviour in one of our intranet applications,
it's been working fine under IE5 -> IE7. Looking at upgrading browser to IE
8 and found that the web service behaviour is no longer working using that
browser. The useService method is throwing an exception "Object doesn't
support this propery or method. both the htc file and the
WorkQueue_svc.asmx file are located in the same directory as the calling
page. I've tried calling it both with and without the "?WSDL" parameter.
I'm hoping someone can share some insight.

Here's a code snippet:

<script language=javascript>
function loadService()
{
try
{
pagebody.useService("WorkQueue_svc.asmx?WSDL","WorkQueueService");
pagebody.WorkQueueService.onserviceavailable = LoadQueries;
}
catch (e)
{
alert("Cannot find web service WorkQueue_svc.asmx.");
}
}
</script>

<body id="pagebody" style="BEHAVIOR: url(webservice.htc)"
onload="loadService();">




From: Patrice on
What is loadService is called from a button click ?

Not a fan but I noticed that the behavior is defined using a style and



"Dave Young" <dmy75252(a)yahoo.com> a �crit dans le message de groupe de
discussion : #fQG1yLsKHA.732(a)TK2MSFTNGP06.phx.gbl...
> We're using the WebService behaviour in one of our intranet applications,
> it's been working fine under IE5 -> IE7. Looking at upgrading browser to
> IE
> 8 and found that the web service behaviour is no longer working using that
> browser. The useService method is throwing an exception "Object doesn't
> support this propery or method. both the htc file and the
> WorkQueue_svc.asmx file are located in the same directory as the calling
> page. I've tried calling it both with and without the "?WSDL" parameter.
> I'm hoping someone can share some insight.
>
> Here's a code snippet:
>
> <script language=javascript>
> function loadService()
> {
> try
> {
> pagebody.useService("WorkQueue_svc.asmx?WSDL","WorkQueueService");
> pagebody.WorkQueueService.onserviceavailable = LoadQueries;
> }
> catch (e)
> {
> alert("Cannot find web service WorkQueue_svc.asmx.");
> }
> }
> </script>
>
> <body id="pagebody" style="BEHAVIOR: url(webservice.htc)"
> onload="loadService();">
>
>
>
>

From: Patrice on
Oops, sorry, for the previous post...

Never used them but I would try to define the behavior on an inner element
and to trigger its use from a button click just to see what happens.

My warning radar tells me it could be some kind of timing issue such as
having the load event being fired before the htc script is loaded (and I
remember to have seen that loading scripts in IE8 was optimized perhaps
producing some timing issue not found in earlier releases)...

--
Patrice