Ajax.InPlaceEditor + onComplete

Hello,

I am trying to use the helper “in_place_editor_field” and pass an
onComplete to it, but it seems that I can’t pass that :success or
:onComplete because they become attributes of the span on to of the
Javascript:

Here is my desired Javascript outcome:

new Ajax.InPlaceEditor(‘div_name’, ‘link_name’,
{onComplete:function(){new Ajax.Updater(‘other_div’,
‘other_link’, {asynchronous:true, evalScripts:true})}})

Currently, I am doing it manually, but it would be nice to use the
helper.

Thanks,

Roland

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs