T
TS
I have a page that spawns a new window. You select an item in it and it sets
a hidden input box on the parent page using javascript, then it submits the
parent and closes itself.
There are required field validators on the parent page. During this
javascript submit, the validation isn't occurring - which is good. The bad
part is that when the page comes back from the server, the validation
messages are now displayed. The user never had a chance to set the dropdowns
because they weren't visible until now.
Thinking about why its occurring made me wonder
1. why the validators don't validate when the popup window's javascript
submits the form (window.parent.form.submit()) .
2. why does the errors display only when the page is rendered and not when
the user clicks the submit button to submit the form?
thanks a bunch!
a hidden input box on the parent page using javascript, then it submits the
parent and closes itself.
There are required field validators on the parent page. During this
javascript submit, the validation isn't occurring - which is good. The bad
part is that when the page comes back from the server, the validation
messages are now displayed. The user never had a chance to set the dropdowns
because they weren't visible until now.
Thinking about why its occurring made me wonder
1. why the validators don't validate when the popup window's javascript
submits the form (window.parent.form.submit()) .
2. why does the errors display only when the page is rendered and not when
the user clicks the submit button to submit the form?
thanks a bunch!