Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript function

Status
Not open for further replies.

funkyspirit

Programmer
Oct 6, 2011
12
GB
Hi there,

I have a JavaScript function that calculates the price of a product that a customer buys. The page is an ASP/VBScript page.

Later in the code, the amount of the purchase is assigned to a hidden value in a form for it to be sent to a server for processing. This hidden value is written in vbscript.

How could I put the value returned by the JavaScript function in the VBScript hidden parameter of the form?

Thanks

 
Code:
document.formname.fieldname.value = calculatedValue;

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top