{ htmlResponse: false } may be exactly what I need, I will try
that ...
Thank you very much, Justin !!
On Jan 13, 11:19 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> Maybe I misunderstood your original question. I thought you wanted to
> do some extra stuff *before* the form submission occurs, as-if to
> prepare the page for switching to edit mode.
>
> If you want to do stuff after the form submission (or even just
> before), you may want to checkout the various callback methods you can
> supply to the InPlaceEditor, such as: onComplete, onFailure, and
> callback. You can also set the option htmlResponse to false and have
> the response from the form submission be raw JavaScript to be
> executed.
>
> new Ajax.InPlaceEditor( 'element-id', { htmlResponse: false } );
>
> And a sample response would be:
>
> $('element-id').update('new value')
>
> This page may be helpful in learning more about the
> Ajax.InPlaceEditor:http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor
>
> -justin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---