My site works fine in FF and Safari. When tested with IE8, I get some
error.  It says "ghost" and "ghostPosition" are undefined.  Why is my
code incompatible with IE8 if my DOM reading and writing are purely
done with Prototype?

++++++++++++++++++++++++++++++++++

if($$('#lineup .ghost').length === 0)
{
    $('lineup').appendChild(
        new Element('li', {'class' : 'ghost'})
    );
}

var ghost = $$('#lineup .ghost')[0];
var ghostPosition = ghost.cumulativeOffset();

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to