# Perform action after in-place edit

**URL:** <https://www.ruby-forum.com/t/perform-action-after-in-place-edit/52715>\
**Category:** Rails\
**Created:** [January 18, 2006, 9:26am UTC](https://www.ruby-forum.com/t/perform-action-after-in-place-edit/52715 "2006-01-18T09:26:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shane\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@Shane\_V](https://www.ruby-forum.com/u/Shane_V)\
**Post date:** [January 18, 2006, 9:26am UTC](https://www.ruby-forum.com/t/perform-action-after-in-place-edit/52715/1 "2006-01-18T09:26:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Shane\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@Shane\_V](https://www.ruby-forum.com/u/Shane_V)\
**Post date:** [April 11, 2006, 1:19pm UTC](https://www.ruby-forum.com/t/perform-action-after-in-place-edit/52715/2 "2006-04-11T13:19:55Z")

</div>

Hi Shane,

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

Thanks,  
Jeroen

---

<div class="post-metadata">

**Author:** ![Shane\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@Shane\_V](https://www.ruby-forum.com/u/Shane_V)\
**Post date:** [April 11, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/perform-action-after-in-place-edit/52715/3 "2006-04-11T14:18:25Z")

</div>

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
