Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Java script function works only when i have alert() in IE 11

$
0
0

I am trying to call the web method from java script function.

If i put alert() it works fine. with out it web method doesnt get called.

Please find the code block below

           

if ( confirm( "You are about to assign a person to a role. Following changes will be commited: \n" +
             "\t- Finished Activities and Tasks keep the name of previously assigned person (if any)         \n" +
             "\t- New user is notified of new responsibilities via email\n\n" +
             "Do you want to continue?"))
{

   aRetArray[1]=oForm.cmbPersons.options[oForm.cmbPersons.selectedIndex].value;
   sParam = <%=iProjectRoleID%> + '¤' + aRetArray[1] + '¤' + <%=intProjectId%>

   // >> Call webservice >>
iPCPWeb.iPCPint.AssignResponsiblePerson(sParam, OnAssignResponsiblePersonSuccess,OnRunWebServiceFaild);
   // << Call webservice <<

}}

I tried using settimeout and moved all script inside <head> tag.

Nothing worked.

 

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>