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

the.wizard

26 Dec 2011, 5:24 PM

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

Regards,
the.wizard

the.wizard

27 Dec 2011, 11:32 PM

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

Regards,
the.wizard

Ersmarker

3 Jan 2012, 1:50 AM

Hi.

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

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

Ersmarker

16 Jan 2012, 12:15 AM

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

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

Ersmarker

17 Jan 2012, 12:17 AM

The frame.addLoaderHandler was added in GWT 2.3

the.wizard

19 Jan 2012, 12:35 AM

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.