On 7/9/07, Walter Lee Davis <[EMAIL PROTECTED]> wrote:
> This is expected behavior. If you want to declare things first, then
> wrap them inside a page-level observer, like this:
>
> function changediv()
> ...
> }
>
> Event.observe(window,'load',function(){
> Event.observe('iframe','load','changediv');
> });
>
> The function won't fire until the entire window is loaded, thus
> satisfying your required elements in order for $('imageShow1') to
> actually exist.
Ah ok, I was under the impression the iFrame could have already been
loaded, so the "watch this thing coming up" would have had to have
been beforehand.
Good to know. So close yet so far.
Cheers
--
BeeRich, Toronto
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---