[CLOSED] How to show message prompt with window 'Hide' listener?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] How to show message prompt with window 'Hide' listener?

    Hi,

    I have configured window by adding 'hide' listener and also added button with click listener which will fire one event. The same click listener functionality added in 'hide' listener of window. Actually the event will check some parameters and will display prompt message box. If I click on close button the prompt message is showing, but while click on 'X' ( window tool to close ) the window simply hiding without showing prompt. The code for window configuration...

    
    var ShowPDFViewWindow = function (url, appid, condid) {
                //alert(url);
                var windowConfig = {
                    id: "WindowPDFView",
                    height: 650,
                    width: 950,
                    hidden: false,
                    buttonAlign: "center",
                    //closeAction: "hide",
                    title: "PDF Viewer",
                    listeners: {
                        hide: {
                            fn: function (el, e) {                            
                                parent.Ext.getCmp('WindowPDFView').getBody().btnExit.fireEvent('click');
                            }
                        }
                    },
                    buttons: [
                        {
                            id: "btnViewerClose",
                            text: "Close",
                            listeners: {
                                click: {
                                    fn: function (el, e) {
                                        parent.Ext.getCmp('WindowPDFView').getBody().btnExit.fireEvent('click');
                                    }
                                }
                            }
                        }
                    ],
                    autoLoad: {
                        url: "PDFViewer/Index.aspx?" + new Date().getTime(),
                        nocache: true,
                        mode: "iframe",
                        showMask: true,
                        triggerEvent: "show",
                        reloadOnEvent: true,
                        params: {
                            URL: url,
                            APPID: appid,
                            CONDID: condid
                        }
                    }
                }
                parent.parent.parent.renderWindow(windowConfig);
            }
    Last edited by Daniil; Jul 16, 2012 at 9:48 PM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] Supported browsers prompt message
    By bakardi in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 27, 2015, 6:04 AM
  2. Replies: 3
    Last Post: Mar 19, 2012, 12:35 PM
  3. Replies: 1
    Last Post: Jan 27, 2012, 11:32 AM
  4. [CLOSED] [1.0] Window show / hide from JS
    By Patrick in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 25, 2010, 10:44 AM
  5. Control show/hide not working from Listener
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Jul 09, 2009, 2:02 PM

Tags for this Thread

Posting Permissions