
marcwolf
Posts: 361
|
| Posted: 06/30/2004, 9:25 PM |
|
Hi folks..
I am having trouble trying to trap the necessary events etc to do the following.
I have a pop up form and I want it to appear. Allow the user to enter data, and upon a successful submit close itself down.
If the submit has not been successful (validation fail, DB issues etc) then it will not close down.
I have the closedown mechanism in place - simply a label withing a scripting block that I can put a 'window.close' into and when the browser displays the page it will close the window down. THIS DOES WORK..
However my biggest issues is to firstly
Trap when the page is being loaded and displayed for the first time
When the page is being displayed after a successful SUBMIT
When the page is being displayed after a Validation or other Error.
I have tried playing around with the forms's FormSubmitted function but that only seems to have been initalised when the form has been submitted and it has FAILED (Same wit the errors collection).
Otherwise they are the same as a inital display or a successfull operation
Can anyone help..
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
peterr
Posts: 5971
|
| Posted: 07/01/2004, 1:57 AM |
|
Hi,
I believe that in OnValidate event of the form the function FormName.ValidatingControls.isValid() returns True if the validation went OK or false if it didn't.
To trap when the page is being loaded you can probably check some of your POST variables in the AfterInitialize event.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|

|
|
|
|