the link_to_remote ====================================================<div> <%=link_to_remote "Click me",:url=> {:action=>"edit"},:update=>"update_me"%> </div> <div id="update_me"> </div> =====================================================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 <kunalan.kand...@gmail.com> wrote:> the link_to_remote > > ====================================================> <div> > <%=link_to_remote "Click me",:url=> > {:action=>"edit"},:update=>"update_me"%> > </div> >Don't use the :update option with an rjs template, pick one or the other. Fred> <div id="update_me"> > > </div> > =====================================================> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hi Fred now its working Thankyou so much nirosh On Aug 7, 9:46 pm, Frederick Cheung <frederick.che...@gmail.com> wrote:> On Aug 7, 5:23 pm, nirosh <kunalan.kand...@gmail.com> wrote:> the link_to_remote > > > ====================================================> > <div> > > <%=link_to_remote "Click me",:url=> > > {:action=>"edit"},:update=>"update_me"%> > > </div> > > Don't use the :update option with an rjs template, pick one or the > other. > > Fred > > > <div id="update_me"> > > > </div> > > =====================================================> > 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---