I''m trying to update a table row (i.e. replace a <tr></tr>) using AJAX/RJS but of course this cannot be done in IE (works fine in Firefox). I have googled but have not found any solutions, only a lot of discussion. Does anyone have a solution to this problem? Cheers, Nicholas
maybe you can replace your table with a css-based layout? table-layouts are kind of legacy old-stuff anyway... or maybe that: <tr><div id="content">updated content here</div></tr>> --- Urspr?ngliche Nachricht --- > Von: "Nicholas Henry" <nicholas.henry@gmail.com> > An: rails@lists.rubyonrails.org > Betreff: [Rails] AJAX/RJS Updating of Table Rows > Datum: Thu, 20 Apr 2006 08:37:40 -0400 > > I''m trying to update a table row (i.e. replace a <tr></tr>) using > AJAX/RJS but of course this cannot be done in IE (works fine in > Firefox). I have googled but have not found any solutions, only a lot > of discussion. Does anyone have a solution to this problem? > > Cheers, > Nicholas > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Thanks, Peter -- but I''m using tables for a legimate purpose, tabular data; i.e. I''m not using for layout. I don''t think <tr><div><td></td></div></tr> is valid markup. Cheers, Nicholas On 4/20/06, Peter Ertl <pertl@gmx.org> wrote:> maybe you can replace your table with a css-based layout? table-layouts are > kind of legacy old-stuff anyway... > > or maybe that: > > <tr><div id="content">updated content here</div></tr> > > > > --- Urspr?ngliche Nachricht --- > > Von: "Nicholas Henry" <nicholas.henry@gmail.com> > > An: rails@lists.rubyonrails.org > > Betreff: [Rails] AJAX/RJS Updating of Table Rows > > Datum: Thu, 20 Apr 2006 08:37:40 -0400 > > > > I''m trying to update a table row (i.e. replace a <tr></tr>) using > > AJAX/RJS but of course this cannot be done in IE (works fine in > > Firefox). I have googled but have not found any solutions, only a lot > > of discussion. Does anyone have a solution to this problem? > > > > Cheers, > > Nicholas > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 4/20/06, Nicholas Henry <nicholas.henry@gmail.com> wrote:> I''m trying to update a table row (i.e. replace a <tr></tr>) using > AJAX/RJS but of course this cannot be done in IE (works fine in > Firefox). I have googled but have not found any solutions, only a lot > of discussion. Does anyone have a solution to this problem?Take a look at Richard White''s Ajax Scaffold Generator: http://www.ajaxscaffold.com/ It uses RJS to update table rows and is "Guaranteed to work on Firefox 1+, IE 6+ and Safari 10+". I think his solution is something like remove the original row, insert the updated row, and move it into the original row''s position.
No, but <tr><td><div></div></td></tr> is. If you assign an id to the td you can''t use it in the update? Haven''t tried this myself, but I''m surprised that it wouldn''t work. <tr><td id="the_row"><td></tr> <% link_to_remote "Change it!", :url => {blah blah}, :update => ''the_row'' %> -Derrick Spell On Apr 20, 2006, at 9:12 AM, Nicholas Henry wrote:> Thanks, Peter -- but I''m using tables for a legimate purpose, tabular > data; i.e. I''m not using for layout. I don''t think > <tr><div><td></td></div></tr> is valid markup. > > Cheers, > Nicholas > > On 4/20/06, Peter Ertl <pertl@gmx.org> wrote: >> maybe you can replace your table with a css-based layout? table- >> layouts are >> kind of legacy old-stuff anyway... >> >> or maybe that: >> >> <tr><div id="content">updated content here</div></tr> >> >> >>> --- Urspr?ngliche Nachricht --- >>> Von: "Nicholas Henry" <nicholas.henry@gmail.com> >>> An: rails@lists.rubyonrails.org >>> Betreff: [Rails] AJAX/RJS Updating of Table Rows >>> Datum: Thu, 20 Apr 2006 08:37:40 -0400 >>> >>> I''m trying to update a table row (i.e. replace a <tr></tr>) using >>> AJAX/RJS but of course this cannot be done in IE (works fine in >>> Firefox). I have googled but have not found any solutions, only a >>> lot >>> of discussion. Does anyone have a solution to this problem? >>> >>> Cheers, >>> Nicholas >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Thank you for your help everybody, I will check out these solutions as well. I have also found this: http://www.larrygoats.com/articles/2006/01/26/taconite-prototype-rails I dropped his script it and it fixed my problem right away. Cheers, Nicholas On 4/20/06, Derrick Spell <derrickspell@cdmplus.com> wrote:> No, but <tr><td><div></div></td></tr> is. > > If you assign an id to the td you can''t use it in the update? > Haven''t tried this myself, but I''m surprised that it wouldn''t work. > > <tr><td id="the_row"><td></tr> > > <% link_to_remote "Change it!", :url => {blah blah}, :update => > ''the_row'' %> > > -Derrick Spell > > On Apr 20, 2006, at 9:12 AM, Nicholas Henry wrote: > > > Thanks, Peter -- but I''m using tables for a legimate purpose, tabular > > data; i.e. I''m not using for layout. I don''t think > > <tr><div><td></td></div></tr> is valid markup. > > > > Cheers, > > Nicholas > > > > On 4/20/06, Peter Ertl <pertl@gmx.org> wrote: > >> maybe you can replace your table with a css-based layout? table- > >> layouts are > >> kind of legacy old-stuff anyway... > >> > >> or maybe that: > >> > >> <tr><div id="content">updated content here</div></tr> > >> > >> > >>> --- Urspr?ngliche Nachricht --- > >>> Von: "Nicholas Henry" <nicholas.henry@gmail.com> > >>> An: rails@lists.rubyonrails.org > >>> Betreff: [Rails] AJAX/RJS Updating of Table Rows > >>> Datum: Thu, 20 Apr 2006 08:37:40 -0400 > >>> > >>> I''m trying to update a table row (i.e. replace a <tr></tr>) using > >>> AJAX/RJS but of course this cannot be done in IE (works fine in > >>> Firefox). I have googled but have not found any solutions, only a > >>> lot > >>> of discussion. Does anyone have a solution to this problem? > >>> > >>> Cheers, > >>> Nicholas > >>> _______________________________________________ > >>> Rails mailing list > >>> Rails@lists.rubyonrails.org > >>> http://lists.rubyonrails.org/mailman/listinfo/rails > >>> > >> _______________________________________________ > >> Rails mailing list > >> Rails@lists.rubyonrails.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Thank you for your help everybody, I will check out these solutions as well. I have also found this: http://www.larrygoats.com/articles/2006/01/26/taconite-prototype-rails I dropped his script it and it fixed my problem right away. Cheers, Nicholas> On 4/20/06, Derrick Spell <derrickspell@cdmplus.com> wrote: > > No, but <tr><td><div></div></td></tr> is. > > > > If you assign an id to the td you can''t use it in the update? > > Haven''t tried this myself, but I''m surprised that it wouldn''t work. > > > > <tr><td id="the_row"><td></tr> > > > > <% link_to_remote "Change it!", :url => {blah blah}, :update => > > ''the_row'' %> > > > > -Derrick Spell > > > > On Apr 20, 2006, at 9:12 AM, Nicholas Henry wrote: > > > > > Thanks, Peter -- but I''m using tables for a legimate purpose, tabular > > > data; i.e. I''m not using for layout. I don''t think > > > <tr><div><td></td></div></tr> is valid markup. > > > > > > Cheers, > > > Nicholas > > > > > > On 4/20/06, Peter Ertl <pertl@gmx.org> wrote: > > >> maybe you can replace your table with a css-based layout? table- > > >> layouts are > > >> kind of legacy old-stuff anyway... > > >> > > >> or maybe that: > > >> > > >> <tr><div id="content">updated content here</div></tr> > > >> > > >> > > >>> --- Urspr?ngliche Nachricht --- > > >>> Von: "Nicholas Henry" <nicholas.henry@gmail.com> > > >>> An: rails@lists.rubyonrails.org > > >>> Betreff: [Rails] AJAX/RJS Updating of Table Rows > > >>> Datum: Thu, 20 Apr 2006 08:37:40 -0400 > > >>> > > >>> I''m trying to update a table row (i.e. replace a <tr></tr>) using > > >>> AJAX/RJS but of course this cannot be done in IE (works fine in > > >>> Firefox). I have googled but have not found any solutions, only a > > >>> lot > > >>> of discussion. Does anyone have a solution to this problem? > > >>> > > >>> Cheers, > > >>> Nicholas > > >>> _______________________________________________ > > >>> Rails mailing list > > >>> Rails@lists.rubyonrails.org > > >>> http://lists.rubyonrails.org/mailman/listinfo/rails > > >>> > > >> _______________________________________________ > > >> Rails mailing list > > >> Rails@lists.rubyonrails.org > > >> http://lists.rubyonrails.org/mailman/listinfo/rails > > >> > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Sorry for the late reply, but I wrote an article that sort of deals with this, and then some: http://unspace.ca/discover/datagrid/ Good luck! Pete ----- Original Message ----- From: "Nicholas Henry" <nicholas.henry@gmail.com> To: <rails@lists.rubyonrails.org> Sent: Thursday, April 20, 2006 8:37 AM Subject: [Rails] AJAX/RJS Updating of Table Rows I''m trying to update a table row (i.e. replace a <tr></tr>) using AJAX/RJS but of course this cannot be done in IE (works fine in Firefox). I have googled but have not found any solutions, only a lot of discussion. Does anyone have a solution to this problem? Cheers, Nicholas _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails