OK, I see what has happened. I have v1.7.0 of the script.aculo.us library and and the Ajax helper has not been updated to allow for new options like submitOnBlur. I modified my ajax.php helper to allow the new options i wanted to use and all is well.
Carry on. Nothing to see here. On Mar 2, 11:43 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hey all, > > I'm fairly new to cake and have no previous experience with ajax, but > I am trying to implement an edit-in-place field. So I have: > <pre> > id']); > </pre> > When I click on the username field, the text turns into an input box. > However, it's not the right size, and I don't want the OK button and > Cancel link to show up - I'd like the update to occur on blur (i.e. <a > href="http://script.aculo.us/current/test/functional/ > ajax_inplaceeditor_test.html">demo</a>). So, I tried passing various > things like 'submitOnBlur' => true -- > <pre>echo $ajax->editor('username_' . $user['User']['id'], '/' . $this->name > . '/ajax_edit_username/' . $user['User']['id'], > > array('submitOnBlur' => true);</pre> > > Nothing that I put in the options array shows up when the page loads, > however. When I look at the source of the index, the script for the > editor is still there and still works, but none of the options appear > in the HTML. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
