Dear VSMASS,
Thanks for your reply with explanation.
As you have suggested with the file name TestServer.asp, this codes are not working (but as I have mentioned earlier that this file's codes as I have written was working for me) showing error like this...
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'jsproc'
/ew-ii-as-8/TestServerVSMASS.asp, line 6
And suggested with the file name TestServerWithEJSF.asp and EJSF.js, these codes are also not working showing error like this...
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'jsproc'
/ew-ii-as-8/TestServerWithEJSFVSMASS.asp, line 7
But, when I have tested my original codes of "TestServerWithEJSF.asp" file with little modification as below, it is working well in both server and client machine. Only your two suggestion have work for me, one is "semicolon" (this was my mistake) and other is "language specification". But not other suggestions.
<html>
<head>
<script type="text/javascript" [B]language="javascript"[/B] runat="server" src="EJSF.js"></script>
<%
sub vbproc(num1,num2)
Response.Write(num1*num2)
call jsproc(5,20)
end sub
%>
</head>
<body>
<p>Result: <%call vbproc(3,4)%></p>
</body>
</html>
Javascript file EJSF.js
function jsproc(num1,num2)
{
Response.Write("<br>Result :");
Response.Write(num1*num2);
}
Thanks again, and here I am closing this thread as it has solved my problem.