1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    the.wizard is on a distinguished road

      0  

    Question Unanswered: Masking the viewport or content panel

    Unanswered: Masking the viewport or content panel


    Hello everyone,
    I have a problem with masking the viewport or content panel. Right now in my application, I have a button that when I clicked it, it will call the setUrl method in the content panel (or TabItem). What I want to achieve is, when the TabItem loading the URL, the parent container will set to mask (so the user can't do anything with the application). The problem is I can't find any event to listen when the TabItem loading the URL. Is there anyone who has the same experience / problem? Please kindly advice me.

    Thanks.
    Regards,
    the.wizard

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    the.wizard is on a distinguished road

      0  

    Wink


    Hello...
    Merry Christmas Everybody..
    Still no one trying to help...
    Hope there is someone that will help me...
    Thanks...

    Regards,
    the.wizard

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    the.wizard is on a distinguished road

      0  

    Default


    Hello...
    Nobody can help me with this masking stuff?
    Any help or comment will be appreciated.
    Thanks.

    Regards,
    the.wizard

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Nov 2010
    Posts
    209
    Answers
    4
    Vote Rating
    -2
    Ersmarker has a little shameless behaviour in the past

      0  

    Default


    Hi.

    TabItem.setUrl returns the iFrame and you can add a load handler to that.

    Code:
    panel.mask();
    t1.setUrl("http://www.sencha.com").addLoadHandler(new LoadHandler() {
        @Override
            public void onLoad(LoadEvent event) {
            panel.unmask();
        }
    });

  5. #5
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    the.wizard is on a distinguished road

      0  

    Default


    Quote Originally Posted by Ersmarker View Post
    Hi.

    TabItem.setUrl returns the iFrame and you can add a load handler to that.

    Code:
    panel.mask();
    t1.setUrl("http://www.sencha.com").addLoadHandler(new LoadHandler() {
        @Override
            public void onLoad(LoadEvent event) {
            panel.unmask();
        }
    });
    Hi Ersmarker,
    I have tried your solution, but it appears that TabItem doesn't have any method like addLoadHandler. It only had addAttachHandler, AddDOMHandler, and AddHandler. Please explain more detail about your solution. Really thanks a lot for helping me.
    Regards,

    the.wizard

  6. #6
    Sencha - GXT Dev Team
    Join Date
    Nov 2010
    Posts
    209
    Answers
    4
    Vote Rating
    -2
    Ersmarker has a little shameless behaviour in the past

      0  

    Default


    You don't add the LoadHandler directly on the tabItem, But on the Frame returned by tabItem.getUrl(url);

    Code:
                    panel.mask();
                    Frame frame = tab1.setUrl("http://www.sencha.com");
                    frame.addLoadHandler(new LoadHandler() {
                        @Override
                        public void onLoad(LoadEvent event) {
                            panel.unmask();
                        }
                    });

  7. #7
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    the.wizard is on a distinguished road

      0  

    Default


    Quote Originally Posted by Ersmarker View Post
    You don't add the LoadHandler directly on the tabItem, But on the Frame returned by tabItem.getUrl(url);

    Code:
                    panel.mask();
                    Frame frame = tab1.setUrl("http://www.sencha.com");
                    frame.addLoadHandler(new LoadHandler() {
                        @Override
                        public void onLoad(LoadEvent event) {
                            panel.unmask();
                        }
                    });
    But the frame itself really don't have method addLoadHandler. I am using gwt 2.2, which gwt version do you use?
    Thanks.

    Regards,
    the.wizard

  8. #8
    Sencha - GXT Dev Team
    Join Date
    Nov 2010
    Posts
    209
    Answers
    4
    Vote Rating
    -2
    Ersmarker has a little shameless behaviour in the past

      0  

    Default


    The frame.addLoaderHandler was added in GWT 2.3

  9. #9
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    the.wizard is on a distinguished road

      0  

    Default


    Quote Originally Posted by Ersmarker View Post
    The frame.addLoaderHandler was added in GWT 2.3
    Can I still do it in gwt 2.2.0? Right now I will stick with gwt 2.2.0 because I use mvp4g (which is currently only support for gwt 2.2.0).
    Please kindly advice me.

    Thanks.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar