Connecting Tech Pros Worldwide Forums | Help | Site Map

Passing Javascript variable on ASP page

Newbie
 
Join Date: Jan 2007
Posts: 3
#1: Jan 24 '07
I have a page, where onload, I populate various boxes with totals via a javascript function. My page itself is in .asp. My question is, how do I take those javascript values that load initially and pass them to the next page so I can update my database with the values?

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jan 24 '07

re: Passing Javascript variable on ASP page


Once you populate the form with Javascript values, pressing the submit button will automatically pass those values to the action page. How you obtain those values on the next page is an ASP question.
Newbie
 
Join Date: Jan 2007
Posts: 3
#3: Jan 24 '07

re: Passing Javascript variable on ASP page


Actually, because the fields themselves were disabled, the values were not passing to the next page. I solved this by creating hidden fields with the same values.

Thanks!
Reply