Maybe the problem is lack of "tbody"?

$('container').insert({
  bottom: '<table><tbody><tr><th>Hello</th></tr></tbody></table>'
})

- kangax

On May 18, 9:54 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Sorry, the code must be:
> <div id="container">
> </div>
> <script language="javascript" type="text/javascript">
> var table = document.createElement('table');
> Element.extend(table);
> var row = document.createElement('tr');
> Element.extend(row);
> row.update ("<th>Hello!<\/th>");
> table.update (row);
> $('container').insert({bottom:table});
> </script>
>
> On 18 Mai, 15:51, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hello,
>
> > sorry for posting again, but I just start with prototype and therefore
> > have some problems with it...
>
> > The following code works in Firefox, but not in IE6:
> > <div id="container">
> > </div>
> > <script language="javascript" type="text/javascript">
> > var table = document.createElement('table');
> > Element.extend(table);
> > var row = document.createElement('tr');
> > Element.extend(row);
> > row.update ("<th>Hello!<\/th>");
> > table.update (row);
> > table.update ("<tr><th>Hallo!</th></tr>");
> > $('container').insert({bottom:table});
> > </script>
>
> > When I change row.update ("<th>Hello!</th>") to row.update ("Hello!")
> > it also works in IE6. table.update ("<tr><th>Hallo!</th></tr>") also
> > works... What is wrong?
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to