Solved

CALL JAVASCRIPT FUNCTION IN VBSCRIPT IN AN ASP PAGE

Posted on 2000-03-22
2
444 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

728 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