Try this:

window.frameName.$('#elemId') ...

The parent page needs to include jQuery.


-- Klaus



Arash Yalpani schrieb:
> Hm, to answer my own question, maybe:
> 
> $('#elemId', parent) ??
> 
> Arash
> 
> Arash Yalpani schrieb:
> 
>> Hi,
>>
>> what would be the best JQuery-way to access an Element in a parent 
>> Frame. The situation I have to deal with is an iframe, embedded in a web 
>> page:
>>
>> <html>
>> <body>
>>    <iframe src="iframe.html"></iframe>
>>   <div id="elemId">Hello World</div>
>> </body>
>> </html>
>>
>> Now, in iframe.html, I want to do something like this:
>>
>> $('parentWindow #elemId').css({color:'#666'});
>>
>> What would be the correct way to do that?
>> Thank you!
>> Arash
>>
>>  
>>
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to