down() implicitly calls $() (or rather, Element.extend). If it does
not, it''s a bug. :)
Your "temp" construct shouldn''t be needed.
-Thomas
Am 19.11.2006 um 08:57 schrieb dyknight:
>
> The following line in effects.js under Effect.SlideUp() and
> Effect.SlideDown() will fail in IE7 (under certain conditions that I
> have yet to confirm):
>
> <code>
> var oldInnerBottom = element.down().getStyle(''bottom'');
> </code>
>
> As most working with the Prototype framework would have realized,
> Internet Explorer requires that you explicitly call $() to extend the
> functions of the Prototype Element class to dynamically created
> elements. Without that, functions such as getStyle, update etc. will
> fail.
>
> Resolution:
>
> <code>
> var temp = element.down();
> var oldInnerBottom = $(temp).getStyle(''bottom'');
> </code>
>
> I didn''t submit a patch because I got a permission error while
trying
> to create a ticket in TRAC.
>
>
> >
--
Thomas Fuchs
wollzelle
http://www.wollzelle.com
questentier on AIM
madrobby on irc.freenode.net
http://www.fluxiom.com :: online digital asset management
http://script.aculo.us :: Web 2.0 JavaScript
http://mir.aculo.us :: Where no web developer has gone before
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---