G
groups2
Does anyone recognize this situation and know what causes it ?
The page starts with just a search form. When you do a search the page
now has a search results form, a save botton, and the search form at
the bottom. There is also a link to add another form with a
dropdown. If you add the third form the page has the search results
form, the form with the dropdown and the search form, in that order.
The save button is set to submit the search results, which is always
forms[0]. If the page has all 3 forms, it works fine. The first form
is submitted,and it is the correct form. If however, the page only has
2 forms, the search results form is ignored, and the form submitted as
forms[0] is the second form, the search form.
document.forms.length is 2 so there does indeed seem to be 2 forms.
What happened to the first form ? Why is it being ignored.
The page starts with just a search form. When you do a search the page
now has a search results form, a save botton, and the search form at
the bottom. There is also a link to add another form with a
dropdown. If you add the third form the page has the search results
form, the form with the dropdown and the search form, in that order.
The save button is set to submit the search results, which is always
forms[0]. If the page has all 3 forms, it works fine. The first form
is submitted,and it is the correct form. If however, the page only has
2 forms, the search results form is ignored, and the form submitted as
forms[0] is the second form, the search form.
document.forms.length is 2 so there does indeed seem to be 2 forms.
What happened to the first form ? Why is it being ignored.