473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript and VBscript in same asp page, possible?

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
Jul 19 '05 #1
3 3912
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


Jul 19 '05 #2
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

Jul 19 '05 #3
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



Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6763
by: David Shorthouse | last post by:
Hey folks, Not an off-topic posting.....since I was shot-down in an earlier post...this one's legit. How do I go about calling a server-side vbscript within a client-side javascript function?...
7
21268
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
3
2924
by: William F. Robertson, Jr. | last post by:
My problem is I routinely use both vbscript and javascript (yes, that is a problem in itself) on the same webpage. I feel placing the "javscript:" or "vbscript:" on all my client side events is...
1
2328
by: bonnie.tangyn | last post by:
Hello all Would it be possible to store javascript document.forms.value to ASP session as global variable? If it is not possible, how can I pass the javascript document.forms.value to...
2
2594
by: bonnie.tangyn | last post by:
Hello all Would it be possible to store javascript document.forms.value to ASP session as global variable? If it is not possible, how can I pass the javascript document.forms.value to...
10
4683
by: Shadow Lynx | last post by:
That subject packs a whallop, so let me explain in better detail what's happening and how it relates to ASPX pages... In a nutshell, if the first <script /on a page is of type "text/vbscript",...
9
8388
by: Erwin Moller | last post by:
Hi, Can anybody comment on this? In comp.lang.php I advised somebody to skip using: <script language="javascript"> and use: <script type="text/javascript"> And mr. Dunlop gave this response:
18
2360
by: Andrew Wan | last post by:
I have been developing web applications with ASP & Javascript for a long time. I have been using Visual Studio 2003.NET. While VS2003 is okay for intellisense of ASP & Javascript, it's still not...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.