Forum: Ruby on Rails How can I make this thing work on IE?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0af60e844d901dd0bb943541b357b192?d=identicon&s=25 Victor hugo Germano (victorhg)
on 2006-05-31 15:43
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>
2da252cc1d2fb3701126171831b50a65?d=identicon&s=25 Dave Coleman (pezdude)
on 2006-05-31 15:47
> <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...
0af60e844d901dd0bb943541b357b192?d=identicon&s=25 Victor hugo Germano (victorhg)
on 2006-05-31 15:49
Sorry David, didnt work... :-(

i am still looking for something on net...

thanks
2da252cc1d2fb3701126171831b50a65?d=identicon&s=25 Dave Coleman (pezdude)
on 2006-05-31 16:23
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??
0af60e844d901dd0bb943541b357b192?d=identicon&s=25 Victor hugo Germano (victorhg)
on 2006-05-31 16:51
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...
0af60e844d901dd0bb943541b357b192?d=identicon&s=25 Victor hugo Germano (victorhg)
on 2006-05-31 19:23
bump
0af60e844d901dd0bb943541b357b192?d=identicon&s=25 Victor hugo Germano (victorhg)
on 2006-05-31 19:31
Victor Hugo Germano wrote:


is there a difference between IE on SP1 and SP2??
39c5254d0a798765f37ac215fa6e0fc7?d=identicon&s=25 Curtis Spendlove (cuspendlove)
on 2006-05-31 19:59
(Received via mailing list)
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.
0af60e844d901dd0bb943541b357b192?d=identicon&s=25 Victor hugo Germano (victorhg)
on 2006-05-31 20:46
Solved!!!
I've edited the prototype_1_4.js as Andy said in
http://www.robsanheim.com/2005/10/11/prototype-ins...

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.
2da252cc1d2fb3701126171831b50a65?d=identicon&s=25 Dave Coleman (pezdude)
on 2006-05-31 20:55
Victor Hugo Germano wrote:
>
> Solved!!!
> I've edited the prototype_1_4.js as Andy said in

ah 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.
This topic is locked and can not be replied to.