G
Guest
hi guys,
I have defined OnUnload event in body of a page to call Javascript.
<script language="javascript" type="text/javascript">
function myFunction()
{
var sessionID = document.Form1.tBoxSessionID.valu
mainSVC.useService("http://localhost/extranet/webservices/mainWebSVC.asmx?WSDL","dNtSvc");
var iCallID;
if (mainSVC.dNtSvc)
{
mainSVC.dNtSvc.callService("setLogOff", document.Form1.tBoxSessionID.value);
}
}
</script>
This webscript infacts updates database record with sessionid passed as
argument from javascript.
Now i know that the code is correct cuz if i put alert("Test") statement
before i call webservice, the record is updated but it dont if the
alert("Test") statement is not there.
Can someone tell me why this is the case? Does webservice stop executing if
the page is unloaded completely?
Thanks in advance.
Manny
I have defined OnUnload event in body of a page to call Javascript.
<script language="javascript" type="text/javascript">
function myFunction()
{
var sessionID = document.Form1.tBoxSessionID.valu
mainSVC.useService("http://localhost/extranet/webservices/mainWebSVC.asmx?WSDL","dNtSvc");
var iCallID;
if (mainSVC.dNtSvc)
{
mainSVC.dNtSvc.callService("setLogOff", document.Form1.tBoxSessionID.value);
}
}
</script>
This webscript infacts updates database record with sessionid passed as
argument from javascript.
Now i know that the code is correct cuz if i put alert("Test") statement
before i call webservice, the record is updated but it dont if the
alert("Test") statement is not there.
Can someone tell me why this is the case? Does webservice stop executing if
the page is unloaded completely?
Thanks in advance.
Manny