On May 24, 3:20 am, Chris S <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I think IE is having problems recognizing when the dom is fully loaded
> and calling my init function before all of the elements all are the
> page. My code works great in Firefox but IE throws an error at this
> line var tabAnchors = $(navTabs).select('li a'); saying "Error: 'null'
> is null or not an object". However, if I put an alert call before that
> line, IE works fine. Is there a better way to check for dom load in
> IE?

The simplest and most robust method is to load all your scripts just
before the closing body tag and call your video_hub_init() function
from the last line of the last script file, or as the only code in the
last script element.

It avoids all issues with "dom:ready" functions and will let your page
load faster too.


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