Whats wrong whit this code, why doesn't it work?
I'm getting no Error or Wanring from Cake, but the code is not added
to the html output :-/
[code lang=php]
...
form:
echo $form->input('User.name', array('id'=>'username'));
...
<?
// AJAX Requests
$options = array(
'url' => array('controller'=>'users','action'=>'getAJAX', $user
['User']['id']),
'before' => 'startLoading()',
'complete' => 'endLoading()',
'failure' => 'failure()',
'frequency' => '10'
);
$options['condition'] = 'ifUsernameHasChanged()';
$ajax->observeField('username', $options);
?>[code]
thx
Aurelius
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---