Daniel King ha scritto:

> I want to use javascript to validate some fields before I submit an
> ajax form. How?
Create a method ajax_check in your controller.

Put an observe fields to monitorate the user entry.

For example echo $ajax->observeField('Name',
array('update'=>'error_message', 'url'=>"/UController/ajax_check",
'frequency'=>0.2));
Optionally you can disable submit form if error_message.innerHTML is
"No".

Have fun!


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

Reply via email to