tags:

views:

36

answers:

1
$('#thelink').click(function(){
$('div#thedialog').dialog('open'); 
});

How do i change this to open window.parent´s div #thedialog.. can i do this?

A: 

Maybe this:

window.parent.$('div#thedialog').dialog('open');

That assumes that the parent window has pulled in its own copy of jQuery, of course. It might also work to do this:

$(window.parent).find('div#thedialog').dialog('open');

but I personally am pretty cautious about setting up stuff in one window using code that lives in another one. IE tends to get pretty freaky about that sometimes.

Pointy
it doesnt work.
Karem
Well, if it's not too much trouble, would you mind elaborating on exactly what the problem is?
Pointy
Oh its working.. the first one, but not the second with find(), thank you!
Karem