amit1978
asked on
Urgent !!! On server side, call javascript from vb script.
Hi All,
I have server side javascript and vb script, while executing my page i have to call javascript function form vb script code and manuplate the display with the returned value.
Help me as this is an urgent.
Thanks,
Amit Jain
I have server side javascript and vb script, while executing my page i have to call javascript function form vb script code and manuplate the display with the returned value.
Help me as this is an urgent.
Thanks,
Amit Jain
ASKER
Thanks,
But here we are calling vb script function thats ok, but my problem is......
Default language of my page is vbscript, and i have to call javascript function from the page. Where vbscript and javascript both are server side language.
Thanks,
Amit Jain
But here we are calling vb script function thats ok, but my problem is......
Default language of my page is vbscript, and i have to call javascript function from the page. Where vbscript and javascript both are server side language.
Thanks,
Amit Jain
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi amit1978,
You could use Server.Transfer... to implement both languages into two different pages which will be executed and one streem.
regards
I
You could use Server.Transfer... to implement both languages into two different pages which will be executed and one streem.
regards
I
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this just an idea
<%@ Language="VBScript"%>
<%
Sub myVB_Sub
...
End Sub
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
var myStrVar = '<%=myVB_Sub%>'; // if return value is string and
var myNumVar = <%=myVB_Sub%>; // if return value is number
//-->
</SCRIPT>
<BODY>
</BODY>
</HTML>
HTH
I