# Ready to call this a bug

**URL:** <https://www.ruby-forum.com/t/ready-to-call-this-a-bug/93494>\
**Category:** Rails\
**Created:** [April 4, 2006, 12:01am UTC](https://www.ruby-forum.com/t/ready-to-call-this-a-bug/93494 "2006-04-04T00:01:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [April 4, 2006, 12:01am UTC](https://www.ruby-forum.com/t/ready-to-call-this-a-bug/93494/1 "2006-04-04T00:01:56Z")

</div>

I’ve been trying to get a handle on AJAX today and am ready to call  
“BUG!”

I started with the code from Curt’s “AJAX on Rails”. It used  
\<ul=“my\_list”\> and

- and worked fine. Except I need a table instead  
of a list. So I did the simplest thing that I thought could possibly  
work.

In the view, I changed the :position attribute from “top” to “after”,  
the

 to , - to 
 and added a ”

In Firefox, it works great. Having loaded Firebug, I can see the HTML  
and I get exactly what I expect. Every time I enter something in the  
field and click the button I get a new

 added to  
the table.

In IE, nothing gets added to the table. I added the developer tool bar  
to IE and confirmed this. Nothing, not even something wrong, is getting  
added.

I believe this may be related to the way IE handles things vis-a-vis DOM  
vs. their Table Object Model. They explain at

> **[Technical documentation](https://learn.microsoft.com/en-us/docs/)**

I would really really appreciate it if someone much more knowledgeable  
than I would take a look and see if this is something I can work around  
and still use prototype, or if I’ve got to take some convoluted MS path  
to working with tables.

Thanks in advance for any assistance. I’ll be happy to send the code if  
it would assist.

Best regards,  
Bill

| to hold the text. In  
the controller, I changed the render\_text argument from “- …
”  
to “ |
| … |
| text |

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [April 4, 2006, 4:16am UTC](https://www.ruby-forum.com/t/ready-to-call-this-a-bug/93494/2 "2006-04-04T04:16:07Z")

</div>

I remember reading on this forum that IE doesn’t support DOM  
manupulation of  
tables.

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [April 4, 2006, 4:46pm UTC](https://www.ruby-forum.com/t/ready-to-call-this-a-bug/93494/3 "2006-04-04T16:46:23Z")

</div>

Well, I know that [script.actulo.us/prototype](http://script.actulo.us/prototype) can add rows to a

 in IE.

Try:

| ... |

If you have ever wanted to use in the “body” section of a table,  
but styled differently from the in the “heading” section, then  
you should also use around the actual heading  
section (and, yes, for the footer which doesn’t have to be  
last either).

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid  
+1 513-295-4739

---

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [April 4, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/ready-to-call-this-a-bug/93494/4 "2006-04-04T18:00:46Z")

</div>

Hallelujah! Pass the chicken!!!

Thanks, Rob. After spending time on the MS developer site reviewing  
their “How to create dynamic tables”, I’d had the same thought and tried  
exactly that first thing this morning. Got no joy. Gave up, figuring MS  
had screwed me again. Your email got me back on it. Turned out I  
needed to change one more thing. In the form\_remote\_tag, I had to  
change :position =\> ‘after’ to :position =\> ‘bottom’. Many, many, many  
thanks. Expect public attribution for the help.

Best regards,  
Bill  
----- Original Message -----  
From: Rob B.  
To: removed\_email\_address@domain.invalid  
Sent: 2006-04-04 9:44 AM  
Subject: Re: [Rails] Ready to call this a bug

Well, I know that [script.actulo.us/prototype](http://script.actulo.us/prototype) can add rows to a   
in IE.

Try:

| ... |

If you have ever wanted to use in the “body” section of a table,  
but styled differently from the in the “heading” section, then you  
should also use around the actual heading section  
(and, yes, for the footer which doesn’t have to be last either).

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid  
+1 513-295-4739

On Apr 3, 2006, at 10:14 PM, Sathish K. N wrote:

```
I remember reading on this forum that IE doesn't support DOM 

```

manupulation of tables.

```
On 4/3/06, Bill W. <removed_email_address@domain.invalid> wrote:
  I've been trying to get a handle on AJAX today and am ready to 

```

call “BUG!”

```
  I started with the code from Curt's "AJAX on Rails". It used 

```

\<ul=“my\_list”\> and

- and worked fine. Except I need a table instead  
of a list. So I did the simplest thing that I thought could possibly  
work.

```
  In the view, I changed the :position attribute from "top" to 

```

“after”, the

 to , - to 
 and added a ”

```
  In Firefox, it works great. Having loaded Firebug, I can see the 

```

HTML and I get exactly what I expect. Every time I enter something in  
the field and click the button I get a new

 added  
to the table.

```
  In IE, nothing gets added to the table. I added the developer 

```

tool bar to IE and confirmed this. Nothing, not even something wrong,  
is getting added.

```
  I believe this may be related to the way IE handles things 

```

vis-a-vis DOM vs. their Table Object Model. They explain at

> **[Technical documentation](https://learn.microsoft.com/en-us/docs/)**

```
  I would really really appreciate it if someone much more 

```

knowledgeable than I would take a look and see if this is something I  
can work around and still use prototype, or if I’ve got to take some  
convoluted MS path to working with tables.

```
  Thanks in advance for any assistance. I'll be happy to send the 

```

code if it would assist.

```
  Best regards,
  Bill

  _______________________________________________
  Rails mailing list
  removed_email_address@domain.invalid
  http://lists.rubyonrails.org/mailman/listinfo/rails

_______________________________________________
Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

```

* * *

* * *

Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

| to hold the  
text. In the controller, I changed the render\_text argument from  
“- …
” to “ |
| … |
| text |
