Forum: Ruby on Rails Perform action after in-place edit

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Shane V. (Guest)
on 2006-01-18 10:26
(Received via mailing list)
I want to be able to call an action after performing an edit using the
in-place editor macro.  I want to update multiple divs so I was
thinking about using an RJS template.  However, I can't figure out how
to trigger another action after the method created by
in_place_edit_for runs.  Is there is an option on Ajax.InPlaceEditor
where I can inject some Element.update calls?

Jeroen van Doorn (Guest)
on 2006-04-11 15:19
(Received via mailing list)
Hi Shane,

Did you ever find an answer to this ?
I'm stuck with the same problem.

Jeroen van Doorn (Guest)
on 2006-04-11 16:18
(Received via mailing list)
found a way, but after the function call, the field isn't editable
anymore ..

<%= in_place_editor_field :appointment, 'description', {}, {:rows => 3,
:cols => 20 , :options => "{onComplete: refresh_app}" } -%>

the "onComplete:  refresh_app " does the trick, but it's not usable
because afterwards it isn't editable anymore.

Somebody else ?

This topic is locked and can not be replied to.