473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Form-level onSubmit handler

When I invoke RegisterOnSubmitStatement, my script is inserted prior to the page validation invocation inserted by DotNet. In this case, my script needs to run only if all client-side validation is successful. It blocks multiple submits, and alters the submit button to give the user some visual feedback that the submit occurred

How can I change the order in which the scripts execute, including those inserted by DotNet

Thanks in advance for your help

Jim Brandley
Nov 18 '05 #1
3 1050
you can't, but your script can call the validator code itself, to decide
whether to run.

-- bruce (sqlwork.com)
"Snowbank Jim" <Ji**********@NoSpamIntercim.com> wrote in message
news:CE**********************************@microsof t.com...
When I invoke RegisterOnSubmitStatement, my script is inserted prior to the page validation invocation inserted by DotNet. In this case, my script
needs to run only if all client-side validation is successful. It blocks
multiple submits, and alters the submit button to give the user some visual
feedback that the submit occurred.
How can I change the order in which the scripts execute, including those inserted by DotNet?
Thanks in advance for your help!

Jim Brandley

Nov 18 '05 #2
I thought of that too, but the ValidatorOnSubmit function doesn't have a return value.
Nov 18 '05 #3
Hi Jim,

I have a solution for you. My product, "Professional Validation And More",
was created to overcome the many limitations of Microsoft's validation
framework. In your case, it's page submit event handler supports the
following:
1. You can hook in your own javascript just by setting a property.
2. You can tell it to put up a confirmation message box that can cancel page
submission.
3. You can dictate the desired order of events between validation, confirm
message, and your script handler.

You will find that Professional Validation And More has tremendous
improvements to validation, saving you time from custom coding and hacks.
Details are at http://www.peterblum.com/vam/home.aspx.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Snowbank Jim" <an*******@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
I thought of that too, but the ValidatorOnSubmit function doesn't have a

return value.
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
4
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
19
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
6
by: Gary Miller | last post by:
Does anyone know how to detect a modeless form on closing by the form that invoked the modeless form? form.Show();
4
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET...
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
6
NeoPa
by: NeoPa | last post by:
Introduction The first thing to understand about Sub-Forms is that, to add a form onto another form takes a special Subform control. This Subform control acts as a container for the form that you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.