Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery window.parent

I can use this just fine in a window

$('#dropDownSpan').css('visibility', 'visible'); 

but how can I use it in another window which is child of this window or may be opened by this window.

I tried:

 $window.parent.('#dropDownSpan').css('visibility', 'visible'); 

but that didnt work, any idea?

like image 388
Asim Zaidi Avatar asked Jul 23 '10 18:07

Asim Zaidi


2 Answers

$('#dropDownSpan', window.parent.document).css('visibility', 'visible'); 
like image 67
Asim Zaidi Avatar answered Oct 13 '22 21:10

Asim Zaidi


I had to interact with the parent page which had opened up a tinymce popup that I created and I needed to use this: group = $('#edit-og-groups', window.opener.document).val(); I had no luck with window.parent.document.

like image 45
Barnettech Avatar answered Oct 13 '22 22:10

Barnettech