Angelo zerr
2006-Sep-13 19:04 UTC
BUG with slider on IE when slider is contained into HTML table not closed
Hello, At first, congratutlation for scriptaculous library. I found a bug with slider on IE when slider is contained into html table which is not closed. Slider doesn''t works, I can not move slider and I have a javascript error. I mail you HTML use case for generate the bug : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Text effects tests</title> <script type="text/javascript" src="../../lib/prototype.js"></script> <script type="text/javascript" src="../../src/scriptaculous.js"></script> </head> <body> <table> <tr> <td> <div id="track1" style="width:200px;background-color:#aaa;height:5px;"> <div id="handle1" style="width:5px;height:10px;background-color:#f00;"> </div> </div> </td> </tr> ///// => TABLE IS NOT CLOSED <script type="text/javascript"> // <![CDATA[ new Control.Slider(''handle1'',''track1'',{ sliderValue:0.5, onSlide:function(v){$(''debug1'').innerHTML=''slide: ''+v}, onChange:function(v){$(''debug1'').innerHTML=''changed! ''+v}}); // ]]> </script> </body> </html> Thank you for your response Regards Angelo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Martinez, Andrew
2006-Sep-13 21:05 UTC
Re: BUG with slider on IE when slider is contained into HTML table not closed
If the table isn''t closed then the bug is your HTML. If you don''t close your table, then you can only expect undesired behavior. This isn''t a bug. -Andrew Martinez -----Original Message----- From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs@googlegroups.com]On Behalf Of Angelo zerr Sent: Wednesday, September 13, 2006 3:04 PM To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails-spinoffs] BUG with slider on IE when slider is contained into HTML table not closed Hello, At first, congratutlation for scriptaculous library. I found a bug with slider on IE when slider is contained into html table which is not closed. Slider doesn''t works, I can not move slider and I have a javascript error. I mail you HTML use case for generate the bug : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Text effects tests</title> <script type="text/javascript" src="../../lib/prototype.js"></script> <script type="text/javascript" src="../../src/scriptaculous.js"></script> </head> <body> <table> <tr> <td> <div id="track1" style="width:200px;background-color:#aaa;height:5px;"> <div id="handle1" style="width:5px;height:10px;background-color:#f00;"> </div> </div> </td> </tr> ///// => TABLE IS NOT CLOSED <script type="text/javascript"> // <![CDATA[ new Control.Slider(''handle1'',''track1'',{ sliderValue:0.5, onSlide:function(v){$(''debug1'').innerHTML=''slide: ''+v}, onChange:function(v){$(''debug1'').innerHTML=''changed! ''+v}}); // ]]> </script> </body> </html> Thank you for your response Regards Angelo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Angelo zerr
2006-Sep-13 21:21 UTC
Re: BUG with slider on IE when slider is contained into HTML table not closed
Hi andrew, thank you for your response. I agree with you, but today I use slider into a WEB Application which use complex layout (struts-tiles) which generate HTML. So it was difficult for me to detect problem with slider. In a layout a </table> was not closed. When you have a simple WEB Application it''s easy to detect problem, but if you have comlex layout, it''s very difficult to find problem. I find slider is very useful and i find it''s shame that slider doesn''t works because </table> is not closed. In a big project , when there are several developers which add HTML in layout, developer can forget to close a table and so after slider will not work. I don''t know how slider works, but is it possible to fix this problem? Thank you Angelo 2006/9/13, Martinez, Andrew <Andrew.Martinez-9sMr025MA47QT0dZR+AlfA@public.gmane.org>:> > If the table isn''t closed then the bug is your HTML. If you don''t close > your table, then you can only expect undesired behavior. This isn''t a bug. > > > > -Andrew Martinez > > > > -----Original Message----- > *From:* rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto: > rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org]*On Behalf Of *Angelo zerr > *Sent:* Wednesday, September 13, 2006 3:04 PM > *To:* rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > *Subject:* [Rails-spinoffs] BUG with slider on IE when slider is contained > into HTML table not closed > > > > Hello, > At first, congratutlation for scriptaculous library. > I found a bug with slider on IE when slider is contained into html table > which is not closed. > Slider doesn''t works, I can not move slider and I have a javascript error. > > I mail you HTML use case for generate the bug : > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> > <html> > <head> > <title>Text effects tests</title> > <script type="text/javascript" src="../../lib/prototype.js"></script> > <script type="text/javascript" > src="../../src/scriptaculous.js"></script> > </head> > <body> > <table> > <tr> > <td> > <div id="track1" > style="width:200px;background-color:#aaa;height:5px;"> > <div id="handle1" > style="width:5px;height:10px;background-color:#f00;"> </div> > </div> > </td> > </tr> > ///// => TABLE IS NOT CLOSED > > > <script type="text/javascript"> > // <![CDATA[ > new Control.Slider(''handle1'',''track1'',{ > sliderValue:0.5, > onSlide:function(v){$(''debug1'').innerHTML=''slide: ''+v}, > onChange:function(v){$(''debug1'').innerHTML=''changed! ''+v}}); > > // ]]> > </script> > > </body> > </html> > > Thank you for your response > > Regards Angelo > > color=black> > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
John Beppu
2006-Sep-13 22:55 UTC
Re: BUG with slider on IE when slider is contained into HTML table not closed
I think this is one of those times where it would be best to fix the problem on your end and make sure the table tags are closed. Let the people on your team know that unclosed table tags lead to broken scriptaculous widgets and strongly encourage them to generate valid XHTML. Give them links to online HTML validators ( http://validator.w3.org/ ) and tell them it''s the right thing to do. On 9/13/06, Angelo zerr <angelo.zerr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi andrew, > thank you for your response. I agree with you, but today I use slider into a > WEB Application which use complex layout (struts-tiles) which generate HTML. > So it was difficult for me to detect problem with slider. In a layout a > </table> was not closed. > When you have a simple WEB Application it''s easy to detect problem, but if > you have comlex layout, it''s very difficult to find problem. > > I find slider is very useful and i find it''s shame that slider doesn''t works > because </table> is not closed. In a big project , when there are several > developers which add HTML in layout, developer can forget to close a table > and so after slider will not work. > > I don''t know how slider works, but is it possible to fix this problem? > > Thank you > > Angelo > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Chris Lear
2006-Sep-14 08:35 UTC
Re: BUG with slider on IE when slider is contained into HTML table not closed
* John Beppu wrote (13/09/06 23:55):> I think this is one of those times where it would be best to fix the > problem on your end and make sure the table tags are closed. Let the > people on your team know that unclosed table tags lead to broken > scriptaculous widgets and strongly encourage them to generate valid > XHTML. Give them links to online HTML validators ( > http://validator.w3.org/ ) and tell them it''s the right thing to do. >I recommend the Firefox plugin based on Tidy. It saves you a lot of bother with HTML validators, and is unobtrusive (except in the view source page, which can get slow if the HTML in the page is really badly messed up). http://users.skynet.be/mgueury/mozilla/ FireBug and the HTML validator are the essential Firefox plugins for developers, I reckon. Broken HTML is the cause of too many weirdnesses and browser incompatibilities already. I don''t think there''s any reason to encourage it any further by making javascript libraries work around it. Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Angelo zerr
2006-Sep-14 08:49 UTC
Re: BUG with slider on IE when slider is contained into HTML table not closed
Tank you for your recommandation. I installed Tidy, and it''s a great plugin. Regards Angelo 2006/9/14, Chris Lear <chris.lear-kZMsvDh4tCZWk0Htik3J/w@public.gmane.org>:> > > * John Beppu wrote (13/09/06 23:55): > > I think this is one of those times where it would be best to fix the > > problem on your end and make sure the table tags are closed. Let the > > people on your team know that unclosed table tags lead to broken > > scriptaculous widgets and strongly encourage them to generate valid > > XHTML. Give them links to online HTML validators ( > > http://validator.w3.org/ ) and tell them it''s the right thing to do. > > > > I recommend the Firefox plugin based on Tidy. It saves you a lot of > bother with HTML validators, and is unobtrusive (except in the view > source page, which can get slow if the HTML in the page is really badly > messed up). > > http://users.skynet.be/mgueury/mozilla/ > > FireBug and the HTML validator are the essential Firefox plugins for > developers, I reckon. Broken HTML is the cause of too many weirdnesses > and browser incompatibilities already. I don''t think there''s any reason > to encourage it any further by making javascript libraries work around it. > > Chris > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---