Hello fellow Bakers,

I am writing a registration form that updates each div that
corresponds with it's respective field using observeField.

The problem I am finding is, that I am copying and pasting a ton of
code for each observeField so, when I looked at the API again, there
is a function called observeForm that sends all elements at once.

Now, my question is, if I use observeForm, can it update multiple divs
or just one?

Say I have a username field and a div id=username, a password field
and a div id=password.  I want it to update both divs.

I have tried to take out the update option in the observeField
function and it doesn't update anything despite having $ajax-
>div('username');
echo "here";
$ajax->divEnd('username');
in the view template.

Any leads or ideas would be helpful.  I am using cake 1.1.14.4603
which is the latest nightly build.


--~--~---------~--~----~------------~-------~--~----~
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