Solved

CALL JAVASCRIPT FUNCTION IN VBSCRIPT IN AN ASP PAGE

Posted on 2000-03-22
2
442 Views
Last Modified: 2010-07-27
Is it possible to call a Javascript function in VBscript in an ASP Page? If so how can I do it. And I want to pass 2 parameters to that function while going through a loop in a recordset.
0
Comment
Question by:froggy77
2 Comments
 

Accepted Solution

by:
Lobsang earned 50 total points
ID: 2646777
You can put on your events...
<input type="text" name="test" onclick="return 'javafunction(x,y)'">  
use: <%=x%>,<%=y%> is this variables are in vbscript.
You can use all events...onclick...onchange...onfocus...onblur...
0
 
LVL 4

Expert Comment

by:jkunal
ID: 2647909
First you have to define what your scripts are i mean are they client side or server side script.

If you have vbscript as server side script and java as client then you can do something like what Lodsang suggested.

But if both vbs and java are client side then you have to store values from a function in hidden fields and acess it from the other function(script).

makeing it more clear

<%%>anything inside this will run on the server and outside this will not.

<script language="vbscript">
</script>
<script language="javascript">
</script>
these are client side script and you can have both in your asp page.

So now you have to decide which function are you calling from where....

;->
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Scheduled IIS .Net2 AppPools recycle and SQL connection Hangs 33 146
Select2 jquery help 9 100
wordpress display sub menu only when click 12 74
IP API - need data... 4 30
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question