Check out this patch by jdalton for a multi document support [1]

If iframes are out of the question, then "document.body" should do
just fine.

[1] http://dev.rubyonrails.org/ticket/11475

- kangax

On Apr 23, 5:44 pm, broberts <[EMAIL PROTECTED]> wrote:
> Is there a way to get a reference to the BODY tag node in the DOM if
> it has no class or ID attribute by which to select it?
>
> I want to insert a dynamically created node right before the closing
> body tag.  Here's where I was going, but I'm not sure how to reference
> the BODY tag node.
>
> var body_tag = ?
>
> var speaker_div = new Element('div', { 'id': 'my_div', 'style':
> 'width: 1px; height: 1px;' }).insert(body_tag, { position: 'bottom' });
--~--~---------~--~----~------------~-------~--~----~
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