Using the new jQuery Position utility script at an FF extension
- by Nimrod Yonatan Ben-Nes
Hi all,
I'm trying to use the following code at my FF extension with no success:
$('#duck').position({
of: $('#zebra'),
my: "left top",
at: "left top"
});
(the Position manual is at http://docs.jquery.com/UI/Position)
I also tried:
var doc = gBrowser.selectedBrowser.contentDocument;
$('#duck', doc).position({
of: $('#zebra', doc),
my: "left top",
at: "left top"
});
Both without success.... on the other hand when I try the first code example at the web page code itself it work wonderfully...
Anyone got any idea what's causing the problem?
Cheers and thx in advance!
Nimrod Yonatan Ben-Nes