Setting a hidden variable and submitting form onclick of a table-header link
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   neal_ravindran
Posted On:   Wednesday, January 15, 2003 10:41 PM

When user clicks a table header link I want to set a hidden variable. The hidden variable should get the value of the data passed as a query variable to table header link. After setting the hidden variable the form should get submitted.



I know the submission part using javascript...but how can I set the document hidden variable with the link data attached to table header. (I have other form data besides the link data that needs to be "post"ed to server and hence cannot do a GET.)

Re: Setting a hidden variable and submitting form onclick of a table-header link

Posted By:   Nitesh_Naveen  
Posted On:   Thursday, January 16, 2003 06:25 AM

it is very much similar to the 'submit'.

document.urFormName.urHiddenName.value='whatever value to set';
document.urFormName.submit();

should do that job
About | Sitemap | Contact