How to refresh IFrame in each Tab in TabStrip

Editor
Feb 19, 2010 at 10:25 AM

I'd like to refresh each Tab in TabStrip. Please tell me, Sanshi.

Coordinator
Mar 23, 2010 at 1:23 PM

You may achieve it through JavaScript.

 

There is an example in extasp.net home page, just have a try:

                var refreshButton = new Ext.Button({
text: 'Refresh',
type: "button",
cls: "x-btn-text-icon",
icon: '<%= IconHelper.GetIconUrl(Icon.ArrowRefresh) %>',
listeners: {
click: function(button, e) {
// Note: button.ownerCt is toolbar, button.ownerCt.ownerCt is current active tab.
Ext.DomQuery.selectNode('iframe', button.ownerCt.ownerCt.getEl().dom).contentWindow.location.replace(href);
e.stopEvent();
}
}
});

 

Editor
Mar 23, 2010 at 4:40 PM

Thank you. However, I'm weak about javascript. I have to try more next time.