Yes I tried it with his coord method and its correct in IE and All
other browsers:

<script src="APE.js" type="text/javascript" charset="utf-8"></script>
<script src="position-f.js" type="text/javascript" charset="utf-8"></
script>
...
        var position   = APE.dom.getOffsetCoords(element,
document.documentElement );
        var offset = element.cumulativeScrollOffset();

        var menuLeft = offset.left + position.x;
        var menuTop = position.y + dimensions.height;
...

you may not need the APE.js that much (I havent really checked but I
think it just uses the APE object for its namespace (I don't think it
uses any helper methods from it). (minified his code is like 3kb or
less)

I hope this helps
- JDD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to