Jatinder Singh
2006-Oct-28 18:21 UTC
page.replace_html doesnot work for a table row in I.E.
I am trying to replace a table row''s content from rjs using page.replace_html "table_row_id", ""contents" but it ceases to fail in I.E.,however it works in Mozilla firefox, does anyone know about any workaround? Regards, Jatinder --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Bill Walton
2006-Oct-28 19:11 UTC
Re: page.replace_html doesnot work for a table row in I.E.
Tables are not DOM objects in MS-lingo. They have a seperate object model. Check MSDN for ''dynamic tables''. Short answer is, you''re going to need to move to using <div> and CSS if you want to do ajax updates to things that look like tables. Best regards, Bill ----- Original Message ----- From: Jatinder Singh To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sent: Saturday, October 28, 2006 1:21 PM Subject: [Rails] page.replace_html doesnot work for a table row in I.E. I am trying to replace a table row''s content from rjs using page.replace_html "table_row_id", ""contents" but it ceases to fail in I.E.,however it works in Mozilla firefox, does anyone know about any workaround? Regards, Jatinder --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Jatinder Singh
2006-Oct-28 19:26 UTC
Re: page.replace_html doesnot work for a table row in I.E.
Yes now I get it... I went through the code generated by ajax-scaffold, which works across browsers.... they have done it with the help of page.insert_html, they basically hide the row, create a new row, moves the new row below the row which is hidden. I have just incorporated similar code for my table and it works with just one exception, although I insert a row and move it under the hidden row, still there is one empty row which gets added at the bottom of the table. Regards Jatinder On 10/29/06, Bill Walton <bill.walton-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> > Tables are not DOM objects in MS-lingo. They have a seperate object > model. Check MSDN for ''dynamic tables''. Short answer is, you''re going to > need to move to using <div> and CSS if you want to do ajax updates to things > that look like tables. > > Best regards, > Bill > > ----- Original Message ----- > *From:* Jatinder Singh <jatinder.saundh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > *To:* rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > *Sent:* Saturday, October 28, 2006 1:21 PM > *Subject:* [Rails] page.replace_html doesnot work for a table row in I.E. > > I am trying to replace a table row''s content from rjs using > page.replace_html "table_row_id", ""contents" > but it ceases to fail in I.E.,however it works in Mozilla firefox, does > anyone know about any workaround? > > > Regards, > Jatinder > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---