473,387 Members | 1,669 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,387 software developers and data experts.

comparevalidators and javascript

hi

I have 2 textboxes for entry of start and end dates. I allow typing in the
textboxes also. I have 2 compareValidator fields as well to validate the 2
textboxes which work fine. Upon text change (onchange event) of the
textboxes, I have written a javascript function (called formatDate) to
format the date - that is, if the date is in format 1/1/2003, the function
will format it to 01/01/2003.
Normally, when the textboxes lose focus, the CompareValidators are executed
automatically. I don't know whether the function is executed first (the one
that I wrote on onchange event) or the compareValidators ?

My question:
I want to call the validators first then call the function i.e if the
validation succeeds then I want to call the formatDate function and if the
validation fails then don't call the formatDate function. Is this possible ?
Nov 17 '05 #1
0 1245

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

Similar topics

0
by: sramruttun | last post by:
hi I have 2 textboxes for entry of start and end dates. I allow typing in the textboxes also. I have 2 compareValidator fields as well to validate the 2 textboxes which work fine. Upon text...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.