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. Opening a web page using VBScript

8. Executing VBScript in a HTML page using web browser control

9. Vbscript class in jscript page (ASP)

10. Refreshing Page through Jscript or VBScript

11. VBScript and JScript in same ASP page

12. VBScript and JScript in same ASP page

 

 
Powered by phpBB® Forum Software