RJS in_place_editor Error

http://pastie.caboo.se/7624

It just renders the JavaScript response as text/html rather than it
being quiet.

try {
new Effect.Highlight(“h1”,{duration:1});
} catch (e) { alert(‘RJS error:\n\n’ + e.toString()); alert(‘new
Effect.Highlight("h1",{duration:1});’); throw e }

I got this effect when i included an :update in a form_remote_tag
previously.

Thanks all

Zach I. wrote:

I got this effect when i included an :update in a form_remote_tag
previously.

Thanks all
If you’re using RJS, you don’t need to do an update, as otherwise it
will update the page with the contents returned instead of executing it
as javascript - the effect you are seeing.

Remove the :update and it should work.

hth


R.Livsey