Results 1 to 6 of 6

Thread: Wait message with bodyCfg

  1. #1

    Default Wait message with bodyCfg

    Hello, I have a window to show PDF. The file is created at the request and may take several seconds.
    Here is my window:

    Code:
            var winPDF = new Ext.Window({
                	    title    : 'My big PDF',
    	            width    : 700,
    	            height   : 500,
    	            plain    : true,
                        layout   : 'fit',
    	            modal    : true,
                        resizable: true,
                        draggable: true,
                	    bodyCfg: {
                		tag: 'iframe',
                		src: '/path_to_my_jsp_how_generate_big_pdf'
                		style: 'border: 0 none'
    				}
    	        });
    so, I try to put wait message like this:
    Code:
         Ext.Msg.wait('Please wait...');   
    			
         setTimeout(function() { 	        
             Ext.Msg.hide();
         }, 4000);
    But my waiting box is displayed under the window.
    How to move it to the foreground ?
    And is there a way to just wait the right time ?
    Thanks

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    The WindowMgr should automatically show the MessageBox over the window, if the messagebox is shown AFTER the window is shown.

    ps. Is the pdf returned with Content-disposition:inline? In that case you could try using the IFRAME load event to hide the messagebox.

  3. #3
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,676

    Default

    try to use mask of the window, that's the simplest way. Set the mask in render event and remove it when pdf is ready.
    You may look to my iFrame panel where i use such.
    http://www.sencha.com/forum/showthre...11-iframePanel
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  4. #4

    Default

    ok, the waiting box is now over the window.
    I'm very new in extjs, I have no idea about Iframe event, can you show me a sample ?
    Thanks steffenk, but the current behavior is right for me.

  5. #5
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Code:
    bodyCfg: {...},
    listeners: {
      render: function(c){
        c.body.on('load', function(){
          Ext.Msg.hide();
        });
      }
    }

  6. #6

    Default

    Great, it's work fine ! Thanks a lot.

Similar Threads

  1. Pop a wait message?
    By TheBigOnion in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 31 Aug 2010, 2:38 PM
  2. closeable wait message
    By wwwjsx in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 3 Nov 2009, 4:00 AM
  3. Wait message on Panel with DataView?
    By Gozer in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 16 May 2008, 2:29 PM
  4. Message Wait
    By yafou in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 17 Apr 2008, 4:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •