Javascript submitting all the forms on a page -


I am using jsf 1.2. When there are more than one type with the specified ID in a particular jasp, for example, using the same form as the following, the JSF form appears to have a random id.

  & lt; Ui: repeat & gt; & Lt; H: form id = "duplication" & gt; ...  

I want to submit all the forms using Javascript. Is there a way to do this without knowing the AIDS form?

Hmm, it will not be that kind of real simple thing if you use something like documents. Form1.submit (); It posts a specific form and all the values ​​in it. Therefore it does not use looping through all forms and submitting any one it will be similar to clicking on the submit button of each form, resulting in each post being posted separately. Used to be. The solution is to collect the values ​​of each field in each form as a collector, and post the collector's form. You can read about it here (with code examples):


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -