Hello... i''ve been read lots of posts talking about this kind o mess in IE... but no one tells how could this be possible to work... :-) Any suggestions?? thanks... <html> <head> <script src="prototype.js"></script> </head> <body> <table border=1> <tbody> <tr id="0" name="0"> <td>LINE 1</td> </tr> </tbody> </table> <script> new Insertion.After(''0'',"<TR><TD>NEW LINE</TD></TR>"); </script> </body> </html> -- Posted via http://www.ruby-forum.com/.
> <tr id="0" name="0"> > <td>LINE 1</td> > new Insertion.After(''0'',"<TR><TD>NEW LINE</TD></TR>");Don''t think you should have an id that starts with a number. Try id="tr0" or something... -- Posted via http://www.ruby-forum.com/.
Victor Hugo Germano
2006-May-31 13:49 UTC
[Rails] Re: How can I make this thing work on IE?
Sorry David, didnt work... :-( i am still looking for something on net... thanks -- Posted via http://www.ruby-forum.com/.
Victor Hugo Germano wrote:> Sorry David, didnt work... :-(That''s strange. Took your exact code, put it in a page and changed your ID to bob0 and your new Insertion.After(''bob0'',''<tr><td>,ew line</td></tr>''); and it worked just fine in both Firefox and IE6. Might be something else that''s wrong with your page?? -- Posted via http://www.ruby-forum.com/.
Victor Hugo Germano
2006-May-31 14:52 UTC
[Rails] Re: How can I make this thing work on IE?
David C. wrote:> Victor Hugo Germano wrote: >> Sorry David, didnt work... :-( > > > That''s strange. Took your exact code, put it in a page and changed your > ID to bob0 and your new Insertion.After(''bob0'',''<tr><td>,ew > line</td></tr>''); > > and it worked just fine in both Firefox and IE6. Might be something else > that''s wrong with your page??sorry... it really works on Firefox.. no IE6 (6.026)... i am runing a tomcat server on my comp... the is page is a .jsp page... nothing that i can remark as a possible problem... -- Posted via http://www.ruby-forum.com/.
Victor Hugo Germano
2006-May-31 17:28 UTC
[Rails] Re: How can I make this thing work on IE?
bump -- Posted via http://www.ruby-forum.com/.
Victor Hugo Germano
2006-May-31 17:36 UTC
[Rails] Re: How can I make this thing work on IE?
Victor Hugo Germano wrote: is there a difference between IE on SP1 and SP2?? -- Posted via http://www.ruby-forum.com/.
On 5/31/06, Victor Hugo Germano <victorhg@gmail.com> wrote:> Victor Hugo Germano wrote: > > > is there a difference between IE on SP1 and SP2??Significant changes, but I''m not sure if they would have anything to do with CSS or JS... Maybe JS because most of it was security related. Perhaps check the IE security settings to ensure the site is either trusted, or at least JS is enabled.
Victor Hugo Germano
2006-May-31 18:48 UTC
[Rails] Re: Re: How can I make this thing work on IE?
Solved!!! I''ve edited the prototype_1_4.js as Andy said in http://www.robsanheim.com/2005/10/11/prototype-insertion-ie-6-trs-and-invalid-target-element-for-this-operation/ Thx for everyone... # Andy Says: December 12th, 2005 at 1:38 pm This fix works for me in the 1.4.0_rc4 release. In the Abstract.Insertion.prototype, add a check for TR: if (this.element.tagName.toLowerCase() == ?tbody? || this.element.tagName.toLowerCase() == ?tr?) { this.insertContent(this.contentFromAnonymousTable()); I didn?t need the extra BR tag. -- Posted via http://www.ruby-forum.com/.
Victor Hugo Germano wrote:> > Solved!!! > I''ve edited the prototype_1_4.js as Andy said inah ha. The latest rails comes with prototype version 1.5.0_rc0. Since you''re not actually doing ror - guess you''re using version avail on the main prototype site. -- Posted via http://www.ruby-forum.com/.