Michael Fuerst wrote:
> I have a strange problem: I can't search an element in the
> parent.document by id:
>
> This isn't working:
>
> $('#bussyMessage',parent.document).size();
>
> but if the element has a name it works:
>
> $('[EMAIL PROTECTED]"bussyMessage"]',parent.document).size();
>
> And this works too:
>
> parent.document.getElementById('bussyMessage');
>
> Could this be a bug? Or am I doing something wrong?
>
> michael
>
> PS: using V 1.1.1, but I think it didn't work with older versions either...
I think that is still because jQuery's id selector uses
document.getElementbyId(), so you will always stay in the document
you're in.
Try:
parent.$('#bussyMessage').size();
The parent must have included jQuery for this.
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/