[RESOLVED]Javascript Web service call useService from webservice.htc not working in IE11

Is there a way for this to work? I am migrating some codes to be IE11 Compatible but then I got the following error for a script calling a web service.

Object doesn’t support property or method ‘useService’. Please help!

 function UpdateCombos(svrType)
{
 var C;
 var C1;
 var I1;
 
 /* get the default cemetery*/
 lblTitle=document.getElementById("lblCaption") ;
 C= getCemeteryName(lblTitle.innerText); 
 
 if  (svrType.length > 0)  
 {  
  service.useService("../Services/wsCMS.asmx?WSDL", "GetList");
  iCallID = service.GetCoffinList.callService(GetListResult,"GetList", C, svrType, C1);  
  
  service.useService("../Services/wsCMS.asmx?WSDL", "GetIList");
  iCallID = service.GetIList.callService(IResult,"GetIList", C, svrType, I1);  
 }
 
 return(false);
}

Hi,

Check this site. There it mentions clearly, webservice behavior has been obselete from IE10.

http://msdn.microsoft.com/en-us/library/ms531034%28VS.85%29.aspx

Leave a Reply