Using the new jQuery Position utility script at an FF extension
Posted
by Nimrod Yonatan Ben-Nes
on Stack Overflow
See other posts from Stack Overflow
or by Nimrod Yonatan Ben-Nes
Published on 2010-03-26T18:14:08Z
Indexed on
2010/03/26
18:33 UTC
Read the original article
Hit count: 520
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
© Stack Overflow or respective owner