On Jun 30, 2:08 pm, Namotco
<namo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''ve tried different versions of Scriptalicious and Prototype
> (currently using 1.81 +1.6.0.2) and I keep getting an error in
> prototype.js when I try to use Draggables:
>
> getStyle: function(element, style) {
> element = $(element);
> style = style == ''float'' ?
''cssFloat'' : style.camelize();
> var value = element.style[style];
>
> X - Null value above (about line 1942)
>
> if (!value || value == ''auto'') {
> var css = document.defaultView.getComputedStyle(element, null);
> value = css ? css[style] : null;
> }
> if (style == ''opacity'') return value ?
parseFloat(value) : 1.0;
> return value == ''auto'' ? null : value;
> },
>
> Has anyone else encountered this?
In my experience, this always means that you''re trying to make an
object draggable before the object exists in the DOM. Unfortunately
this message doesn''t give you any clue which object is involved, but
look at your code and see if there''s anything that you''re
trying to
make draggable before you''ve created it.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---