|
-
Jul 15th, 2000, 10:37 AM
#1
Thread Starter
Addicted Member
Hi,
I have a JavaScript Function that returns a numeric value.
How can I take that value and then use it with my ASP or VBScript Code.
-
Jul 15th, 2000, 11:36 AM
#2
Guru
I would use a hidden input box on a form. After submitting the form, ASP can read the value of the form variable and work with it as required
-
Jul 15th, 2000, 11:39 AM
#3
Thread Starter
Addicted Member
How would you set the hidden value
How would you set the hidden value
-
Jul 15th, 2000, 11:49 AM
#4
Guru
here is a quick page I put together:
Code:
<HTML>
<SCRIPT language=Javascript>
function SubmitIt()
{
// set the value
document.frmMain.txtJSResult.value = "HELLO WORLD!";
// display that the value is set
window.alert(document.frmMain.txtJSResult.value);
// submit the form
document.frmMain.submit();
}
</SCRIPT>
<BODY>
<form name=frmMain method=post>
<input name=txtJSResult type=hidden>
</form>
<Input type=Button name=cmdSubmit value=SUBMIT onclick="SubmitIt();">
</BODY>
</HTML>
-
Jul 15th, 2000, 12:06 PM
#5
Thread Starter
Addicted Member
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
|