reload jquery windows

reload jquery windows

with javascript i used window.open to open a page, enter data into a form and at the end, before closing the window i used the follwing js command

 window.opener.document.forms[0].action="mainPage.php", window.opener.document.forms[0].submit();

to reload the opening page. now i want to do the same with jquery-ui dialog windows: i insert a tag object in it to open a page and then..how i can simulate the above js command? the problem is that the code for jquuery-ui windows are within the code of the page which defined it...