Yes and if you o onSubmit="return javascriptFunction();" then you could in that function, check the contents of the div, if it is still empty then then data hasn't been returned and you return false to stop the form submitting. If it contains a success then you could return true which will then allow the submit.
What part of that doesn't make sense? -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 On Mon, Jan 21, 2013 at 5:13 AM, John Pullam <[email protected]>wrote: > > >Why don't you use a javascript submit interception, then the Javascript > >could check the results returned in the div and allow the submit or not? > > > > I think that solution has the same problem. Because the bind is > asynchronous, it doesn't necessarily finish execution when you are in the > submit logic. I found from testing it out and issuing javascript alert > messages that usually the submit fires before the bind runs. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:353979 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

