CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Trapping page operations Initialised, Submitted and passed, Submitted with errors

Print topic Send  topic

Author Message
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!!!!!!!
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.