vdw.francois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-14 09:21 UTC
Insertion.Bottom doesn''t work on IE 7
Hello I hit a problem with IE7 using protype v 1.51. I would''like add some row on a table. In the following example I''m using a function ''u()'' to inisert a new TR. It works fine with FF but noting append (not even an error) with IE7. Where am I wrong ? <html><head> <script type="text/javascript" src="js/prototype151.js"></script> <script> function u() { var x = new Insertion.Bottom("ilist", "<tr><td>Next row</td></tr>"); } </script></head> <body> <table border="1"> <tbody id=''ilist'' > <tr><td>First row</td></tr> </tbody> </table> <button onclick="u()">add one TR</button> </body></html> Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Have you tried just using the appendChild function rather than the Insertion.Bottom object? - Dash - vdw.francois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Hello I hit a problem with IE7 using protype v 1.51. > I would''like add some row on a table. In the following example I''m > using a function ''u()'' to inisert a new TR. It works fine with FF but > noting append (not even an error) with IE7. Where am I wrong ? > > <html><head> > <script type="text/javascript" src="js/prototype151.js"></script> > <script> > function u() { > var x = new Insertion.Bottom("ilist", "<tr><td>Next row</td></tr>"); > } > > </script></head> > <body> > <table border="1"> > <tbody id=''ilist'' > > <tr><td>First row</td></tr> > </tbody> > </table> > <button onclick="u()">add one TR</button> > </body></html> > > > Thanks. > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
while we are on this subject, i''m really hanging out for the element insertion events, i''ve got 2 projects now where I need to insert elements in the dom but not as a child of another element but beside.. and it''s not plain HTML, actual nodes. On 5/15/07, David Dashifen Kees <dashifen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Have you tried just using the appendChild function rather than the > Insertion.Bottom object? > > > - Dash - > > vdw.francois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > Hello I hit a problem with IE7 using protype v 1.51. > > I would''like add some row on a table. In the following example I''m > > using a function ''u()'' to inisert a new TR. It works fine with FF but > > noting append (not even an error) with IE7. Where am I wrong ? > > > > <html><head> > > <script type="text/javascript" src="js/prototype151.js"></script> > > <script> > > function u() { > > var x = new Insertion.Bottom("ilist", "<tr><td>Next row</td></tr>"); > > } > > > > </script></head> > > <body> > > <table border="1"> > > <tbody id=''ilist'' > > > <tr><td>First row</td></tr> > > </tbody> > > </table> > > <button onclick="u()">add one TR</button> > > </body></html> > > > > > > Thanks. > > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
vdw.francois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-15 13:03 UTC
Re: Insertion.Bottom doesn''t work on IE 7
Yes, I did, I get the same result. François. On 14 mai, 15:22, David Dashifen Kees <dashi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Have you tried just using the appendChild function rather than the > Insertion.Bottom object? > > - Dash - > > > > vdw.franc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > Hello I hit a problem with IE7 using protype v 1.51. > > I would''like add some row on a table. In the following example I''m > > using a function ''u()'' to inisert a new TR. It works fine with FF but > > noting append (not even an error) with IE7. Where am I wrong ? > > > <html><head> > > <script type="text/javascript" src="js/prototype151.js"></script> > > <script> > > function u() { > > var x = new Insertion.Bottom("ilist", "<tr><td>Next row</td></tr>"); > > } > > > </script></head> > > <body> > > <table border="1"> > > <tbody id=''ilist'' > > > <tr><td>First row</td></tr> > > </tbody> > > </table> > > <button onclick="u()">add one TR</button> > > </body></html> > > > Thanks.- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
That''s a good point. There have been a number of times when I''ve wanted to insert an object and not actual HTML text. I suppose it could go either way: the insertion of a node or an ability to get HTML from a node. - Dash - Gareth Evans wrote:> while we are on this subject, i''m really hanging out for the element > insertion events, i''ve got 2 projects now where I need to insert elements in > the dom but not as a child of another element but beside.. and it''s not > plain HTML, actual nodes. > > > > On 5/15/07, David Dashifen Kees <dashifen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Have you tried just using the appendChild function rather than the >> Insertion.Bottom object? >> >> >> - Dash - >> >> vdw.francois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: >> >>> Hello I hit a problem with IE7 using protype v 1.51. >>> I would''like add some row on a table. In the following example I''m >>> using a function ''u()'' to inisert a new TR. It works fine with FF but >>> noting append (not even an error) with IE7. Where am I wrong ? >>> >>> <html><head> >>> <script type="text/javascript" src="js/prototype151.js"></script> >>> <script> >>> function u() { >>> var x = new Insertion.Bottom("ilist", "<tr><td>Next row</td></tr>"); >>> } >>> >>> </script></head> >>> <body> >>> <table border="1"> >>> <tbody id=''ilist'' > >>> <tr><td>First row</td></tr> >>> </tbody> >>> </table> >>> <button onclick="u()">add one TR</button> >>> </body></html> >>> >>> >>> Thanks. >>> >>> >>> >>> > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
vdw.francois-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-15 14:23 UTC
Re: Insertion.Bottom doesn''t work on IE 7
I aplologize for this noise ... my problem was comming from the IE security rules : The security bar of IE said there was some script blocked. I set the rule in order to accept script from this site (actual local html file) and then the script works as expected. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
There is an IE issue with insertion.bottom on a table if you are inserting multiple rows. IE will reverse them. I submitted a patch some time ago. http://dev.rubyonrails.org/ticket/7938 --Howard On May 15, 9:23 am, "vdw.franc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <vdw.franc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I aplologize for this noise ... my problem was comming from the IE > security rules : The security bar of IE said there was some script > blocked. I set the rule in order to accept script from this site > (actual local html file) and then the script works as expected.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---