Well there are a number of ways you could do it, one that is probably the best is to disable the submit button and have some javascript returned with the info that will enable the submit button.
Another is to look at the ExtJS docs for 3.1 if running on ColdFusion 9+ and see if there is another way, for example hook into an event on the div loaded or something, and the reactivate the submit button. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 On Mon, Jan 21, 2013 at 5:08 AM, John Pullam <[email protected]>wrote: > > >Have the form call a custom function onsubmit and check the values in your > >form fields before it allows form submission. > > > I'm probably missing something here but I need to lookup data in a > database after the email address and password are provided. I was using a > cfc behind the scenes to do that when the bind was triggered and then > updating the on-page variable. > > How might I do that from the submit button? I'm really hoping to be able > to post any bad email/password error message in a javascript window alert > and not do it on a new page. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353978 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

