This is a migrated thread and some comments may be shown as answers.

Refresh window from within window

1 Answer 500 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ravisankar
Top achievements
Rank 1
Ravisankar asked on 03 Aug 2012, 04:04 AM
How to refresh a window from within? I have button in the window content that should refresh the window .

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 07 Aug 2012, 07:01 AM
Depending on whether the content is loaded in an iframe or not:

$("#window").data("kendoWindow").refresh(); // no iframe

window.parent.$("#window").data("kendoWindow").refresh(); // iframe showing a page from the same domain


If you need to trigger the refresh from an iframe that holds a page from a different domain, use the postMessage APIs.
 
Regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Ravisankar
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or