![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have need for a page that lets me: 1. Fill out a form 2. Validate the entries using JavaScript 3. If valid, open a small window, then submit the form, with the results flowing back to the small window. I can specify the small window and the validation by writing: form .... name= testForm target="smallWindow" ... onsubmit="return validation();"...>. Then: script function validation() { // validate entries, then; smallWin=window.open"null","resultsWindow","height =300,width= 400,status=no,toolbar=no,menubar=no,location=no,le ft=200,top=200"); |
|
.... testForm.submit(); } /script This opens the window, but the reply comes back in another, full sized window, not the small one. If I submit the form first (testForm.submit() , the reply comes backin a large window, then the small window is opened. If I use a submit button, the reply shows in the small window, but then validation is bypassed. What is the solution? Pat |
![]() |
| Thread Tools | |
| Display Modes | |
| |