On Jun 30, 2:08 pm, Namotco <[EMAIL PROTECTED]> 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@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
-~----------~----~----~----~------~----~------~--~---