== Belongs in Javascript forum really
yea, and if you are computing them on the fly in your javascript, you can use the DOM to define form values dynamically. Something like:
I've actually become kind of a fan of document.getElementById() as it seems to be pretty well supported (and form names in .NET don't mean so much as they used to). But still, that's a stylistic JS issue.
Just be sure to check whatever you set in JS server-side in Perl as well. I've run into JS-calculated totals being taken as real totals before, a big no-no.
I wasn't sure which forum to post into but hoped that someone would be able to help. A Javascript function creates a hidden var which is posted to the script in the normal way. One of those cases where the answer is simple when you know it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.