Rjs works but gives some error

the link_to_remote

=====================================================

<%=link_to_remote "Click me",:url=> {:action=>"edit"},:update=>"update_me"%>

the rjs (edit.rjs)

page.alert “test”

the error message is
try { alert(“test”); } catch (e) { alert(‘RJS error:\n\n’ + e.toString
()); alert(‘alert(“test”);’); throw e }

after the error the update_me div isn’t updated

please help me

On Aug 7, 5:23 pm, nirosh [email protected] wrote:

the link_to_remote

=====================================================

<%=link_to_remote "Click me",:url=> {:action=>"edit"},:update=>"update_me"%>

Don’t use the :update option with an rjs template, pick one or the
other.

Fred

hi Fred
now its working

Thankyou so much

nirosh

On Aug 7, 9:46 pm, Frederick C. [email protected]

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