Calling Server Side JScript from Server Side VBScript 
Author Message
 Calling Server Side JScript from Server Side VBScript

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



Tue, 11 Feb 2003 03:00:00 GMT  
 Calling Server Side JScript from Server Side VBScript
<script language="jscript" runat="server">
function jsfunc(arg)
{
    // whatever...
    Response.Write(arg);
Quote:
}

</script>
...
...
<% jsfunc("foobar") %>

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> 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



Tue, 11 Feb 2003 03:00:00 GMT  
 Calling Server Side JScript from Server Side VBScript

Here's what I need to do:

<script language="jscript" runat="server">
function jsfunc(arg)
{
    //whatever...
    Response.Write(arg);

Quote:
}

</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

Quote:
> <script language="jscript" runat="server">
> function jsfunc(arg)
> {
>     // whatever...
>     Response.Write(arg);
> }
> </script>
> ...
> ...
> <% jsfunc("foobar") %>

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --




- Show quoted text -

Quote:
> > 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



Fri, 14 Feb 2003 03:00:00 GMT  
 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



Fri, 14 Feb 2003 03:00:00 GMT  
 Calling Server Side JScript from Server Side VBScript
Any way to "include" a js file that will runat server?

Owen


Quote:
> <script language="jscript" runat="server">
> function jsfunc(arg)
> {
>     // whatever...
>     Response.Write(arg);
> }
> </script>
> ...
> ...
> <% jsfunc("foobar") %>

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --




- Show quoted text -

Quote:
> > 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



Sat, 15 Feb 2003 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Urgent: Call server-side Jscript from server-side Vbscript?

2. Urgent: Call server-side Jscript from server-side Vbscript?

3. Calling client-side javascript function from server-side vbscript

4. Calling client-side javascript from server-side vbscript

5. Help converting server-side VBScript array into client-side JScript array

6. getting server side vbscript array to client side jscript

7. getting server side vbscript array to client side jscript

8. How Can I Pass Data Between the Server Side and the Client Side VB/JScript

9. Client-side Subroutine calling Server-Side Subroutine

10. Calling server side from client side

11. Calling Server Side Script from Client Side Script

12. Call Server Side Script From Client Side Script

 

 
Powered by phpBB® Forum Software