refresh function delay, old content visible briefly

2 posts, 0 answers
  1. Happy
    Happy avatar
    65 posts
    Member since:
    Aug 2008

    Posted 13 Dec 2012 Link to this post

    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?
  2. Indramani
    Indramani avatar
    2 posts
    Member since:
    Apr 2014

    Posted 09 Nov 2014 in reply to Happy Link to this post

    Hi please clear the contents while closing the window.

                    $('#iframeWidgetConfiguration').attr('src', configurationUrl);
                        draggable: false,
                        modal: true,
                        iframe: true,
                        title: 'Settings',
                        actions: ["Close"],
                        resizable: false,
                        close: function (e) {
                            $('#iframeWidgetConfiguration').attr('src', "");
Back to Top