I see errors from IE 6 when including versions 1.5.0_rc0, 1.5.1 or 1.6.0_rc0 in my html page. Of course the IE error line counting starts at 2, but that aside, should it be the case that including Prototypes in a html should NOT give any javascript errors in IE 6?? Am I asking for too much? The point is that I need to debug a slew of Javascript issues in IE6 and if I cant even get a clean page (no errors) how can I begin to fix any problems? Here are some errors: line 412 character 17 Expected '')'' Here is line 411 of prototype.js (version 1.6.0_rc0): if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; character 17 is "j" or the "a" in Array (excluding leading spaces) Line 300 character 17 Exprected '')'' Here is line 300: if (hash[key].constructor != Array) hash[key] = [hash[key]]; Line 239 character 39 Unexpected quantifier Here is line 238: Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; perhaps the ? is character 39? Here is the HTML I''m using: <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>MyBup!</title> <script type="text/javascript" src="/javascripts/prototype.js"></ script> </head> <body> </body> </html> these are just the beginning, once I start adding code I see more errors with my code calling Prototype''s Element.show method... Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Mike, Please grab latest version from trunk. Regards, Tobie On Oct 14, 9:11 pm, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I see errors from IE 6 when including versions 1.5.0_rc0, 1.5.1 or > 1.6.0_rc0 in my html page. Of course the IE error line counting starts > at 2, but that aside, should it be the case that including Prototypes > in a html should NOT give any javascript errors in IE 6?? Am I asking > for too much? > > The point is that I need to debug a slew of Javascript issues in IE6 > and if I cant even get a clean page (no errors) how can I begin to fix > any problems? > > Here are some errors: > line 412 character 17 Expected '')'' > > Here is line 411 of prototype.js (version 1.6.0_rc0): > > if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; > > character 17 is "j" or the "a" in Array (excluding leading spaces) > > Line 300 character 17 Exprected '')'' > Here is line 300: > if (hash[key].constructor != Array) hash[key] = [hash[key]]; > > Line 239 character 39 Unexpected quantifier > Here is line 238: > Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; > > perhaps the ? is character 39? > > Here is the HTML I''m using: > <head> > <meta http-equiv="content-type" content="text/html;charset=utf-8" /> > <title>MyBup!</title> > <script type="text/javascript" src="/javascripts/prototype.js"></ > script> > </head> > > <body> > </body> > > </html> > > these are just the beginning, once I start adding code I see more > errors with my code calling Prototype''s Element.show method... > > Mike--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, I grabbed the trunk, I see similar errors as before (noted in the comments below, "IE 6 Error..."): <!-- IE 6 Error: line 195 of prototype-trunk.js "unexpected quantifier" --> <script type="text/javascript" src="/javascripts/prototype- trunk.js"></script> If I ignore the "unexpected quantifier error" I see these errors attempting to hide a div: <script type="text/javascript"> Element.hide($(''mainbox'')); // IE 6 error: Element undefined $(''mainbox'').hide(); // IE 6 error: object expected </script> How can this be?? ------------FYI Here is the entire HTML doc:----------- <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>MyBup!</title> <!-- IE 6 Error: line 195 of prototype-trunk.js "unexpected quantifier" --> <script type="text/javascript" src="/javascripts/prototype- trunk.js"></script> </head> <body> <div id="mainbox" > Hello Mike </div> <script type="text/javascript"> Element.hide($(''mainbox'')); // IE 6 error: Element undefined $(''mainbox'').hide(); // IE 6 error: object expected </script> </body> </html> --------------- Mike On Oct 14, 12:20 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Mike, > > Please grab latest version from trunk. > > Regards, > > Tobie > > On Oct 14, 9:11 pm, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I see errors from IE 6 when including versions 1.5.0_rc0, 1.5.1 or > > 1.6.0_rc0 in my html page. Of course the IE error line counting starts > > at 2, but that aside, should it be the case that including Prototypes > > in a html should NOT give any javascript errors in IE 6?? Am I asking > > for too much? > > > The point is that I need to debug a slew of Javascript issues in IE6 > > and if I cant even get a clean page (no errors) how can I begin to fix > > any problems? > > > Here are some errors: > > line 412 character 17 Expected '')'' > > > Here is line 411 of prototype.js (version 1.6.0_rc0): > > > if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; > > > character 17 is "j" or the "a" in Array (excluding leading spaces) > > > Line 300 character 17 Exprected '')'' > > Here is line 300: > > if (hash[key].constructor != Array) hash[key] = [hash[key]]; > > > Line 239 character 39 Unexpected quantifier > > Here is line 238: > > Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; > > > perhaps the ? is character 39? > > > Here is the HTML I''m using: > > <head> > > <meta http-equiv="content-type" content="text/html;charset=utf-8" /> > > <title>MyBup!</title> > > <script type="text/javascript" src="/javascripts/prototype.js"></ > > script> > > </head> > > > <body> > > </body> > > > </html> > > > these are just the beginning, once I start adding code I see more > > errors with my code calling Prototype''s Element.show method... > > > Mike--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Don''t know what you are doing wrong Mike, But I''m running trunk successfully in IE6 here. You errors probably come from the fact that you are attempting to hide the elements before they have been loaded in the dom. Make sure you use window.onload or put an inline script *after* the element you want to hide. Regards, Tobie On Oct 14, 9:57 pm, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I grabbed the trunk, I see similar errors as before (noted in the > comments below, "IE 6 Error..."): > > <!-- IE 6 Error: line 195 of prototype-trunk.js "unexpected > quantifier" --> > <script type="text/javascript" src="/javascripts/prototype- > trunk.js"></script> > > If I ignore the "unexpected quantifier error" I see these errors > attempting to hide a div: > > <script type="text/javascript"> > Element.hide($(''mainbox'')); // IE 6 error: Element undefined > $(''mainbox'').hide(); // IE 6 error: object expected > </script> > > How can this be?? > > ------------FYI Here is the entire HTML doc:----------- > <head> > <meta http-equiv="content-type" content="text/html;charset=utf-8" /> > <title>MyBup!</title> > <!-- IE 6 Error: line 195 of prototype-trunk.js "unexpected > quantifier" --> > <script type="text/javascript" src="/javascripts/prototype- > trunk.js"></script> > </head> > > <body> > <div id="mainbox" > > Hello Mike > </div> > <script type="text/javascript"> > Element.hide($(''mainbox'')); // IE 6 error: Element undefined > $(''mainbox'').hide(); // IE 6 error: object expected > </script> > > </body> > > </html> > --------------- > > Mike > > On Oct 14, 12:20 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Mike, > > > Please grab latest version from trunk. > > > Regards, > > > Tobie > > > On Oct 14, 9:11 pm, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I see errors from IE 6 when including versions 1.5.0_rc0, 1.5.1 or > > > 1.6.0_rc0 in my html page. Of course the IE error line counting starts > > > at 2, but that aside, should it be the case that including Prototypes > > > in a html should NOT give any javascript errors in IE 6?? Am I asking > > > for too much? > > > > The point is that I need to debug a slew of Javascript issues in IE6 > > > and if I cant even get a clean page (no errors) how can I begin to fix > > > any problems? > > > > Here are some errors: > > > line 412 character 17 Expected '')'' > > > > Here is line 411 of prototype.js (version 1.6.0_rc0): > > > > if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; > > > > character 17 is "j" or the "a" in Array (excluding leading spaces) > > > > Line 300 character 17 Exprected '')'' > > > Here is line 300: > > > if (hash[key].constructor != Array) hash[key] = [hash[key]]; > > > > Line 239 character 39 Unexpected quantifier > > > Here is line 238: > > > Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; > > > > perhaps the ? is character 39? > > > > Here is the HTML I''m using: > > > <head> > > > <meta http-equiv="content-type" content="text/html;charset=utf-8" /> > > > <title>MyBup!</title> > > > <script type="text/javascript" src="/javascripts/prototype.js"></ > > > script> > > > </head> > > > > <body> > > > </body> > > > > </html> > > > > these are just the beginning, once I start adding code I see more > > > errors with my code calling Prototype''s Element.show method... > > > > Mike--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, OK, well, I am apparently using IE 5! I remember this particular virtual machine I did not upgrade IE. Can you tell me if its true that more or less we (as developers) should not worry about supporting IE 5 (in general) for a public facing website? Mike On Oct 14, 1:48 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Don''t know what you are doing wrong Mike, > > But I''m running trunk successfully in IE6 here. > > You errors probably come from the fact that you are attempting to hide > the elements before they have been loaded in the dom. > > Make sure you use window.onload or put an inline script *after* the > element you want to hide. > > Regards, > > Tobie > > On Oct 14, 9:57 pm, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > I grabbed the trunk, I see similar errors as before (noted in the > > comments below, "IE 6 Error..."): > > > <!-- IE 6 Error: line 195 of prototype-trunk.js "unexpected > > quantifier" --> > > <script type="text/javascript" src="/javascripts/prototype- > > trunk.js"></script> > > > If I ignore the "unexpected quantifier error" I see these errors > > attempting to hide a div: > > > <script type="text/javascript"> > > Element.hide($(''mainbox'')); // IE 6 error: Element undefined > > $(''mainbox'').hide(); // IE 6 error: object expected > > </script> > > > How can this be?? > > > ------------FYI Here is the entire HTML doc:----------- > > <head> > > <meta http-equiv="content-type" content="text/html;charset=utf-8" /> > > <title>MyBup!</title> > > <!-- IE 6 Error: line 195 of prototype-trunk.js "unexpected > > quantifier" --> > > <script type="text/javascript" src="/javascripts/prototype- > > trunk.js"></script> > > </head> > > > <body> > > <div id="mainbox" > > > Hello Mike > > </div> > > <script type="text/javascript"> > > Element.hide($(''mainbox'')); // IE 6 error: Element undefined > > $(''mainbox'').hide(); // IE 6 error: object expected > > </script> > > > </body> > > > </html> > > --------------- > > > Mike > > > On Oct 14, 12:20 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Mike, > > > > Please grab latest version from trunk. > > > > Regards, > > > > Tobie > > > > On Oct 14, 9:11 pm, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I see errors from IE 6 when including versions 1.5.0_rc0, 1.5.1 or > > > > 1.6.0_rc0 in my html page. Of course the IE error line counting starts > > > > at 2, but that aside, should it be the case that including Prototypes > > > > in a html should NOT give any javascript errors in IE 6?? Am I asking > > > > for too much? > > > > > The point is that I need to debug a slew of Javascript issues in IE6 > > > > and if I cant even get a clean page (no errors) how can I begin to fix > > > > any problems? > > > > > Here are some errors: > > > > line 412 character 17 Expected '')'' > > > > > Here is line 411 of prototype.js (version 1.6.0_rc0): > > > > > if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; > > > > > character 17 is "j" or the "a" in Array (excluding leading spaces) > > > > > Line 300 character 17 Exprected '')'' > > > > Here is line 300: > > > > if (hash[key].constructor != Array) hash[key] = [hash[key]]; > > > > > Line 239 character 39 Unexpected quantifier > > > > Here is line 238: > > > > Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; > > > > > perhaps the ? is character 39? > > > > > Here is the HTML I''m using: > > > > <head> > > > > <meta http-equiv="content-type" content="text/html;charset=utf-8" /> > > > > <title>MyBup!</title> > > > > <script type="text/javascript" src="/javascripts/prototype.js"></ > > > > script> > > > > </head> > > > > > <body> > > > > </body> > > > > > </html> > > > > > these are just the beginning, once I start adding code I see more > > > > errors with my code calling Prototype''s Element.show method... > > > > > Mike--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, None of the main Javascript frameworks support IE5 anylonger as far as I know. Regards, Tobie On Oct 15, 2:51 am, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > OK, well, I am apparently using IE 5! I remember this particular > virtual machine I did not upgrade IE. Can you tell me if its true that > more or less we (as developers) should not worry about supporting IE 5 > (in general) for a public facing website? > > Mike > > On Oct 14, 1:48 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Don''t know what you are doing wrong Mike, > > > But I''m running trunk successfully in IE6 here. > > > You errors probably come from the fact that you are attempting to hide > > the elements before they have been loaded in the dom. > > > Make sure you use window.onload or put an inline script *after* the > > element you want to hide. > > > Regards, > > > Tobie > > > On Oct 14, 9:57 pm, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi, > > > > I grabbed the trunk, I see similar errors as before (noted in the > > > comments below, "IE 6 Error..."): > > > > <!-- IE 6 Error: line 195 of prototype-trunk.js "unexpected > > > quantifier" --> > > > <script type="text/javascript" src="/javascripts/prototype- > > > trunk.js"></script> > > > > If I ignore the "unexpected quantifier error" I see these errors > > > attempting to hide a div: > > > > <script type="text/javascript"> > > > Element.hide($(''mainbox'')); // IE 6 error: Element undefined > > > $(''mainbox'').hide(); // IE 6 error: object expected > > > </script> > > > > How can this be?? > > > > ------------FYI Here is the entire HTML doc:----------- > > > <head> > > > <meta http-equiv="content-type" content="text/html;charset=utf-8" /> > > > <title>MyBup!</title> > > > <!-- IE 6 Error: line 195 of prototype-trunk.js "unexpected > > > quantifier" --> > > > <script type="text/javascript" src="/javascripts/prototype- > > > trunk.js"></script> > > > </head> > > > > <body> > > > <div id="mainbox" > > > > Hello Mike > > > </div> > > > <script type="text/javascript"> > > > Element.hide($(''mainbox'')); // IE 6 error: Element undefined > > > $(''mainbox'').hide(); // IE 6 error: object expected > > > </script> > > > > </body> > > > > </html> > > > --------------- > > > > Mike > > > > On Oct 14, 12:20 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Mike, > > > > > Please grab latest version from trunk. > > > > > Regards, > > > > > Tobie > > > > > On Oct 14, 9:11 pm, Mike <bod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > I see errors from IE 6 when including versions 1.5.0_rc0, 1.5.1 or > > > > > 1.6.0_rc0 in my html page. Of course the IE error line counting starts > > > > > at 2, but that aside, should it be the case that including Prototypes > > > > > in a html should NOT give any javascript errors in IE 6?? Am I asking > > > > > for too much? > > > > > > The point is that I need to debug a slew of Javascript issues in IE6 > > > > > and if I cant even get a clean page (no errors) how can I begin to fix > > > > > any problems? > > > > > > Here are some errors: > > > > > line 412 character 17 Expected '')'' > > > > > > Here is line 411 of prototype.js (version 1.6.0_rc0): > > > > > > if (!Object.isArray(hash[key])) hash[key] = [hash[key]]; > > > > > > character 17 is "j" or the "a" in Array (excluding leading spaces) > > > > > > Line 300 character 17 Exprected '')'' > > > > > Here is line 300: > > > > > if (hash[key].constructor != Array) hash[key] = [hash[key]]; > > > > > > Line 239 character 39 Unexpected quantifier > > > > > Here is line 238: > > > > > Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; > > > > > > perhaps the ? is character 39? > > > > > > Here is the HTML I''m using: > > > > > <head> > > > > > <meta http-equiv="content-type" content="text/html;charset=utf-8" /> > > > > > <title>MyBup!</title> > > > > > <script type="text/javascript" src="/javascripts/prototype.js"></ > > > > > script> > > > > > </head> > > > > > > <body> > > > > > </body> > > > > > > </html> > > > > > > these are just the beginning, once I start adding code I see more > > > > > errors with my code calling Prototype''s Element.show method... > > > > > > Mike--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Oct 15, 11:17 am, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > None of the main Javascript frameworks support IE5 anylonger as far as > I know.Whether they support any particular browser (or user agent) or not, is it reasonable that they throw errors simply by being included in the page? -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I agree, whererever posssible, proper degrading is what we should be aiming at. As usual, any patch or bug fix to prevent this behaviour is of course welcomed. Regards, Tobie On Oct 15, 1:29 pm, RobG <rg...-AFFH1GffN5hPR4JQBCEnsQ@public.gmane.org> wrote:> On Oct 15, 11:17 am, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > None of the main Javascript frameworks support IE5 anylonger as far as > > I know. > > Whether they support any particular browser (or user agent) or not, is > it reasonable that they throw errors simply by being included in the > page? > > -- > Rob--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---