Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Javascript and VBscript in same asp page, possible?

Reply
Thread Tools

Javascript and VBscript in same asp page, possible?

 
 
Peter
Guest
Posts: n/a
 
      08-19-2004
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
 
Reply With Quote
 
 
 
 
joker
Guest
Posts: n/a
 
      08-19-2004
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>

Peter wrote:

> 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


 
Reply With Quote
 
 
 
 
mark | r
Guest
Posts: n/a
 
      08-19-2004
what about having asp write variables in an external .js file... i still
havent worked out a way to do this.

mark

> 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>
>
> Peter wrote:
>
> > 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

>



 
Reply With Quote
 
joker
Guest
Posts: n/a
 
      08-19-2004
Change the Extension to .asp and use the same technique I just described.

mark | r wrote:

> what about having asp write variables in an external .js file... i still
> havent worked out a way to do this.
>
> mark
>
>
>>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>
>>
>>Peter wrote:
>>
>>
>>>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

>>

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making the same button do client side javascript and server side vbscript? COHENMARVIN ASP .Net 2 10-20-2005 01:13 AM
javascript and vbscript in the same page William F. Robertson, Jr. ASP .Net 3 12-07-2004 07:17 PM
Serverside javascript and vbscript on same page? Robert Mark Bram ASP General 4 08-15-2004 07:01 AM
VBScript and JavaScript on same page Mark Sargent ASP General 2 11-18-2003 09:04 PM
ASP JavaScript versus ASP VBScript John Davis ASP General 5 09-07-2003 12:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57