$('#thelink').click(function(){
$('div#thedialog').dialog('open');
});
How do i change this to open window.parent´s div #thedialog.. can i do this?
$('#thelink').click(function(){
$('div#thedialog').dialog('open');
});
How do i change this to open window.parent´s div #thedialog.. can i do this?
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.