On Thu, Apr 24, 2008 at 1:31 PM, seran128 <[EMAIL PROTECTED]> wrote:
>
>  I know what the reason for this is; that in my first call I show the
>  parent Div "mainDiv" but the innerDIV has not registered with the DOM.

Um ... in general, calling show() on a parent element causes its
children to be displayed too (unless they're specifically hidden as
well). And incidentally, displaying an element doesn't "register" it
with the DOM--the entire DOM is built up as the page loads; even
hidden elements are added to the DOM, they're just not visible in the
browser.

So I'm not sure what the problem in your code is, without seeing the code.

Bonus tip: if you're using the latest version of Prototype (and you
really should be), you can write $('mainDiv').show() instead of
Element.show('mainDiv').

:Dan

--~--~---------~--~----~------------~-------~--~----~
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