Using VBScript and JScript on a Web Page 
Author Message
 Using VBScript and JScript on a Web Page

According to a Sept. 1998 Tech article in Visual Interdev:
 "For the most part, you can mix and match scripting languages on the same
page without any problems. A script in one language can call routines in
another language and share global variables with scripts in another
language. "

I've tried the following and get a data type mismatch error:


.
.
<script language="Javascript">
function foo(){
    return(0)

Quote:
}

</script>
.
.
.
<%
Dim footest
    foottest = foo()
%>

Any suggestions?

Thanks!



Sun, 30 Jun 2002 03:00:00 GMT  
 Using VBScript and JScript on a Web Page
Hi

You are mixing server/client scripts

This should fix it
<script language="Javascript" RUNAT="server">

--
Best Regards
   Vidar Petursson
http://www.icysoft.com


-

Quote:
> According to a Sept. 1998 Tech article in Visual Interdev:
>  "For the most part, you can mix and match scripting languages on the same
> page without any problems. A script in one language can call routines in
> another language and share global variables with scripts in another
> language. "

> I've tried the following and get a data type mismatch error:


> .
> .
> <script language="Javascript">
> function foo(){
>     return(0)
> }
> </script>
> .
> .
> .
> <%
> Dim footest
>     foottest = foo()
> %>

> Any suggestions?

> Thanks!



Sun, 30 Jun 2002 03:00:00 GMT  
 Using VBScript and JScript on a Web Page
It works.  Thanks for the help!

Quote:
> Hi

> You are mixing server/client scripts

> This should fix it
> <script language="Javascript" RUNAT="server">

> --
> Best Regards
>    Vidar Petursson
> http://www.icysoft.com


> -


> > According to a Sept. 1998 Tech article in Visual Interdev:
> >  "For the most part, you can mix and match scripting languages on the
same
> > page without any problems. A script in one language can call routines in
> > another language and share global variables with scripts in another
> > language. "

> > I've tried the following and get a data type mismatch error:


> > .
> > .
> > <script language="Javascript">
> > function foo(){
> >     return(0)
> > }
> > </script>
> > .
> > .
> > .
> > <%
> > Dim footest
> >     foottest = foo()
> > %>

> > Any suggestions?

> > Thanks!



Mon, 01 Jul 2002 03:00:00 GMT  
 Using VBScript and JScript on a Web Page
Worked.  Thanks for the help!

Quote:
> Hi

> You are mixing server/client scripts

> This should fix it
> <script language="Javascript" RUNAT="server">

> --
> Best Regards
>    Vidar Petursson
> http://www.icysoft.com


> -


> > According to a Sept. 1998 Tech article in Visual Interdev:
> >  "For the most part, you can mix and match scripting languages on the
same
> > page without any problems. A script in one language can call routines in
> > another language and share global variables with scripts in another
> > language. "

> > I've tried the following and get a data type mismatch error:


> > .
> > .
> > <script language="Javascript">
> > function foo(){
> >     return(0)
> > }
> > </script>
> > .
> > .
> > .
> > <%
> > Dim footest
> >     foottest = foo()
> > %>

> > Any suggestions?

> > Thanks!



Mon, 01 Jul 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Using VBScript and JScript on a Web Page

2. Passing variables from one web page to another web page using JavaScript

3. Printing a Web Page using VBScript

4. printing a web page using VBscript

5. Selecting Text on a web page using VBscript

6. Printing a web-page using VBScript

7. pass a form from web page to web page

8. pass a form from web page to web page

9. Passing JScript array to another web page

10. How to read a HTML web page from JScript/WSH

11. How to check prior web page in jscript?

12. Using MSWinsck.ocx on a web page

 

 
Powered by phpBB® Forum Software