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

refresh function delay, old content visible briefly

1 Answer 200 Views
Window
This is a migrated thread and some comments may be shown as answers.
Happy
Top achievements
Rank 1
Happy asked on 13 Dec 2012, 05:28 PM
I have a single window that I reuse from my webpage. User can click various buttons to display a modal sublist.  The button clicks are mapped to a javascript function.

In that function, I make a call to the windows refresh method giving it a new url. Then I change the title for the window and finally I call open().

It works but not great.  The first time, it works fine. But then I close the window, and I click on a different button. The window opens again, but it's showing the content from the first time, and then a second later, it finally updates to the new content.

Any solutions?

1 Answer, 1 is accepted

Sort by
0
Indramani
Top achievements
Rank 1
answered on 09 Nov 2014, 10:57 AM
Hi please clear the contents while closing the window.

$('#configurationWindow').show();
                $('#iframeWidgetConfiguration').attr('src', configurationUrl);
                $("#configurationWindow").kendoWindow({
                    draggable: false,
                    modal: true,
                    iframe: true,
                    title: 'Settings',
                    actions: ["Close"],
                    resizable: false,
                    close: function (e) {
                        $('#iframeWidgetConfiguration').attr('src', "");
                    }
                }).data("kendoWindow").center().open();
            
Tags
Window
Asked by
Happy
Top achievements
Rank 1
Answers by
Indramani
Top achievements
Rank 1
Share this question
or