I''m trying to use Ajax to update a table row, and it doesn''t work properly. So, I checked out the AjaxScaffold, and he''s using: page << "new TableRow.MoveAfter(''some_id'', ''some_other_id'');" But I''m getting a TableRow element not defined error in an alert box in my code. I''ve included all the JS defaults in my layout. Not sure why I can''t use TableRow.MoveAfter. Any help would be great! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Guest wrote:> I''m trying to use Ajax to update a table row, and it doesn''t work > properly. So, I checked out the AjaxScaffold, and he''s using: > > page << "new TableRow.MoveAfter(''some_id'', ''some_other_id'');" > > But I''m getting a TableRow element not defined error in an alert box in > my code. I''ve included all the JS defaults in my layout. Not sure why I > can''t use TableRow.MoveAfter.The TableRow object is a custom part of AjaxScaffold. You could rip out and include the ajax_scaffold.js file from this package, but the latest Prototype SVN seems to have support for cross-browser table manipulation. -- We develop, watch us RoR, in numbers too big to ignore. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Mark. That makes sense. Thanks! Mark Reginald James wrote:> Guest wrote: >> I''m trying to use Ajax to update a table row, and it doesn''t work >> properly. So, I checked out the AjaxScaffold, and he''s using: >> >> page << "new TableRow.MoveAfter(''some_id'', ''some_other_id'');" >> >> But I''m getting a TableRow element not defined error in an alert box in >> my code. I''ve included all the JS defaults in my layout. Not sure why I >> can''t use TableRow.MoveAfter. > > The TableRow object is a custom part of AjaxScaffold. You could > rip out and include the ajax_scaffold.js file from this package, > but the latest Prototype SVN seems to have support for cross-browser > table manipulation. > > -- > We develop, watch us RoR, in numbers too big to ignore.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---