
Calling Server Side JScript from Server Side VBScript
<script language="jscript" runat="server">
function jsfunc(arg)
{
//whatever...
Response.Write(arg);
Quote:
}
</script>
<%
Dim aVBVar
aVBVar=<value from server side database>
jsFunc aVBVar
'or Call jsFunc(aVBVar)
%>
--
Michael Harris
Microsoft.MVP.Scripting
--
Quote:
> Here's what I need to do:
> <script language="jscript" runat="server">
> function jsfunc(arg)
> {
> //whatever...
> Response.Write(arg);
> }
> </script>
> <%
> Dim aVBVar
> aVBVar=<value from server side database>
> =====Here's where I need to call jsfunc passing the vbvar as a
> parameter!=====
> %>
> ?
> TIA,
> Owen
> > <script language="jscript" runat="server">
> > function jsfunc(arg)
> > {
> > // whatever...
> > Response.Write(arg);
> > }
> > </script>
> > ...
> > ...
> > <% jsfunc("foobar") %>
> > --
> > Michael Harris
> > Microsoft.MVP.Scripting
> > --
> > > Is there a way (what is the syntax?) to have JScript and VBScript
> available
> > > on the server side at the same time? I need to call a JScript function
> on
> > > the server side from a VBScript function on the server side in an ASP
> page.
> > > TIA,
> > > Owen