Is there a way to pass Hidden fields from page to page in a JSP/HTML page and access them using Javascript...in other words if I pass "amount =A" from page 1 to page 2 then how can I access the value of "amount" on Page 2 using Javascript...? Is there a way to do this? Thanks!
Two ways of doing this using client side javascript. You can either use cookies to store information across pages, or use a querystring such as page2.html?amount=1020 to pass the info. and retrieve it on page 2 using javascript. See if following articles are of any help. 1) Cookies - http://www.technofundo.com/tech/js/jscookies.html 2) Querystring variables - http://www.technofundo.com/tech/js/JSGoodies.html HTH, - Manish
Dave Vick
Ranch Hand
Joined: May 10, 2001
Posts: 3244
posted
0
Veni If the original page is a form that is being submitted you can also use the input tag hidden type to pass variables. they'll get passed in whatever way you set the form to be submitted - get or post. Then they are accessed the same as all of the other form elements from the form. Dave
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.