How does one execute a JS script before the html request is made and
halt the request based on some condition in the JS? For instance, I
wish to check that required fields are correctly populated; if any
required field is not correctly populated, I want to show an alert and
return to the page without completing the http request. I am using the
'before' option in the submit but have not discovered how to stop the
request from completing.

Thanks in advance for your suggestions.

Peter -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to