|
-
Nov 2nd, 2004, 04:38 PM
#1
Thread Starter
Fanatic Member
How to fire off Java script function from VB code in VB .Net
Hi everyone. I have an input box function written in java. I have a couple of questions.
First, how would I start that function from the middle of a precedure from my visual basic sub routine? I don't want it to always run when this button is clicked. What I'm doing is checking a database for some specific data, if it's not found, the popup box function needs to open up so they can enter a value in.
also, can I pass some value, say a session value from the vb code to the java function?
Lastly, how could I pass the value they entered in back to the vb process that is running.
Following is the java I tried but I don't think it will use the Session variable I'm trying.
Code:
<script language="javascript">
Function (TermID)
var TermID = prompt("Enter Terminal ID for " & Session("st"));
</script>
I know there are buttons out there that I could click and have them enter a value, but like I said I need this to run sometimes, not everytime the submit button is clicked.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|