Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by UdayS on Sep 08, 2009 13:16
open dhtmlx forum
dhtmlxWindows refresh parent

Hi,

I'm using dhtmlxWindows. I created a window with two buttons. One for applying the changes to the database and another which just closes. I was able to apply the changes to the database and close the window but was not able to refresh the parent window after applying the changes. I'm using "win.attachURL(url)" function to attach the jsp page which contains the buttons. Is there any simple way to just refresh the parent page on clicking the apply button? Thanks

- UdayS
Answer posted by Alex (support) on Sep 09, 2009 01:53

Hello 

iframe can be got by dhxWins.window(id)._frame.

If you attach a page from the same domain, it can be refreshed as follows:

dhxWins.window(id)._frame.contentWindow.document.location.reload()