That is unconventional. Do it this way... Put an ONCLICK attribute in the submit button. That way, if u click it, it will run your javascript functions which u will write to validate the fields. If something is wrong, put out a pop up message. if nothing is wrong, have it submit the message.
-----Original Message----- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 12:20 PM To: CF-Talk Subject: RE: Function? Well I want to validate certain fields throughout the application and use the submit for a master save of all of the data associated with the form. -----Original Message----- From: Phoeun Pha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 1:01 PM To: CF-Talk Subject: RE: Function? Why not just let it happen when the user clicks a submit button? Onexit AKA OnBlur is creepy and confusing. but it's possible to do it your way. First write a javascript function to submit the form. THen in the form field for the SSN, add in this attribute.. onblur="nameoffunction();" that way, when the user moves out of the field, it calls the javascript, which submits the form magically. walla! -----Original Message----- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 11:52 AM To: CF-Talk Subject: Function? I was curious if it is possible for me to write a function that will onExit from a form field cerify that data against our database? For examples if I enter in my SSN then onexit the ssn would be passed back to the server and a query would execute Either returing the results of my query (firstname, lastname etc...) or it would send back no then I would display a error message. Please advise... Seems possible im just not sure how to do it...exactly... Thanks for your help Kris Pilles Website Manager Western Suffolk BOCES 507 Deer Park Rd., Building C Phone: 631-549-4900 x 267 E-mail: [EMAIL PROTECTED] ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists