Javascript and VBscript in same asp page, possible?

P

Peter

Hello!

Please, could anyone say, can one combine javascript and vbscript in same
asp page? I am in situation where I must run some code in javascript and some
of it in vbscript. Can I change somehow to run code in vbscript and when it
is executed back to javascript? Help is very much appreciated.

Thanks!

Peter
 
J

joker

All you have to do is

<script language="JavaScript" runat=server>
//Sever side Jscript goes here
</script>

<script language="vbscript" runat=server>
//Sever side VB Script goes here
</script>

<script language="JavaScript">
//Client side Jscript goes here
</script>

<script language="vbscript">
//Client side VB Script goes here assuming you have an IE only audience
</script>
 
M

mark | r

what about having asp write variables in an external .js file... i still
havent worked out a way to do this.

mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top