James Whittaker
2006-Apr-03 09:31 UTC
[Rails] Javascript helpers not updating table row in IE6
Trying to replace a table row with an id using both RJS templates and normal link_to_remote :update. Neither work in IE6, fine in FF etc. If I use the same code but target a div with an ID it works. This is tricky as I have a table with edit buttons, when the button is pressed that row gets updated with a partial containing a form for update. I need this to work as II don''t fancy rewriting the whole table in CSS with spans etc as it defeats the objective of having tabular data displayed. -- Posted via http://www.ruby-forum.com/.
James Whittaker
2006-Apr-03 10:44 UTC
[Rails] Re: Javascript helpers not updating table row in IE6
James Whittaker wrote:> Trying to replace a table row with an id using both RJS templates and > normal link_to_remote :update. Neither work in IE6, fine in FF etc. > > If I use the same code but target a div with an ID it works. This is > tricky as I have a table with edit buttons, when the button is pressed > that row gets updated with a partial containing a form for update. I > need this to work as II don''t fancy rewriting the whole table in CSS > with spans etc as it defeats the objective of having tabular data > displayed.bump -- Posted via http://www.ruby-forum.com/.
Alex Young
2006-Apr-03 10:56 UTC
[Rails] Re: Javascript helpers not updating table row in IE6
James Whittaker wrote:> James Whittaker wrote: >> Trying to replace a table row with an id using both RJS templates and >> normal link_to_remote :update. Neither work in IE6, fine in FF etc. >> >> If I use the same code but target a div with an ID it works. This is >> tricky as I have a table with edit buttons, when the button is pressed >> that row gets updated with a partial containing a form for update. I >> need this to work as II don''t fancy rewriting the whole table in CSS >> with spans etc as it defeats the objective of having tabular data >> displayed. > > bump >Is this useful at all? http://msdn.microsoft.com/workshop/author/tables/buildtables.asp -- Alex
James Whittaker
2006-Apr-03 11:07 UTC
[Rails] Re: Re: Javascript helpers not updating table row in IE6
Alex Young wrote:> James Whittaker wrote: >> >> bump >> > Is this useful at all? > > http://msdn.microsoft.com/workshop/author/tables/buildtables.aspI have been soing some tests. Its seems that the Prototype library is at fault because if I try to use Element.update(''myId, "new text"). It does not work on the table row. -- Posted via http://www.ruby-forum.com/.
Alex Young
2006-Apr-03 11:21 UTC
[Rails] Re: Re: Javascript helpers not updating table row in IE6
James Whittaker wrote:> Alex Young wrote: >> James Whittaker wrote: >>> bump >>> >> Is this useful at all? >> >> http://msdn.microsoft.com/workshop/author/tables/buildtables.asp > > I have been soing some tests. Its seems that the Prototype library is > at fault because if I try to use Element.update(''myId, "new text"). > It does not work on the table row.Did you read the page? I quote:> Note When using Dynamic HTML (DHTML) to create a document, you can > create objects and set the innerText or innerHTML property of the > object. However, because of the specific structure required by > tables, the innerText and innerHTML properties of the table and tr > objects are read-only.This is a limitation of IE, not Prototype. -- Alex
Chris Hall
2006-Apr-03 11:23 UTC
[Rails] Re: Re: Javascript helpers not updating table row in IE6
>From the link previously posted:**The *innerText* and *innerHTML* properties are read-only on the *tr*object. it''s not a Prototype problem. On 4/3/06, James Whittaker <jmwhittaker@gmail.com> wrote:> > Alex Young wrote: > > James Whittaker wrote: > >> > >> bump > >> > > Is this useful at all? > > > > http://msdn.microsoft.com/workshop/author/tables/buildtables.asp > > I have been soing some tests. Its seems that the Prototype library is at > fault because if I try to use Element.update(''myId, "new text"). It does > not work on the table row. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060403/6df839a2/attachment.html
James Whittaker
2006-Apr-03 12:11 UTC
[Rails] Re: Re: Re: Javascript helpers not updating table row in IE6
Chris Hall wrote:>>From the link previously posted: > > **The *innerText* and *innerHTML* properties are read-only on the > *tr*object. > > it''s not a Prototype problem.Thanks, how silly is that. A simple thing to achieve in any browser except IE. -- Posted via http://www.ruby-forum.com/.
Martin Tomes
2006-Apr-03 12:56 UTC
[Rails] Re: Re: Javascript helpers not updating table row in IE6
Chris Hall wrote:> >From the link previously posted: > > **The *innerText* and *innerHTML* properties are read-only on the *tr* > object. > > it''s not a Prototype problem.If the job of Prototype is to protect the user from browser differences (which I believe it is) then Prototype ought to handle this. However, if it was me maintaining Prototype I would have my head firmly in a bucket of sand at this point. -- Martin Tomes echo ''martin at tomes x org x uk''\ | sed -e ''s/ x /\./g'' -e ''s/ at /@/'' Visit http://www.subversionary.org/