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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
363548d0cfaaa4bab88747f31ad49c02?d=identicon&s=25 Shane Vitarana (Guest)
on 2006-01-18 09: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?

Thanks,
Shane
5f79cc51f2e2e7b2bb982134e9c649e0?d=identicon&s=25 Jeroen van Doorn (Guest)
on 2006-04-11 13:19
(Received via mailing list)
Hi Shane,

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

Thanks,
Jeroen
5f79cc51f2e2e7b2bb982134e9c649e0?d=identicon&s=25 Jeroen van Doorn (Guest)
on 2006-04-11 14: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 ?

Regards,
Jeroen
This topic is locked and can not be replied to.