This project is read-only.

How to refresh IFrame in each Tab in TabStrip

Feb 19, 2010 at 10:25 AM

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

Mar 23, 2010 at 1:23 PM

You may achieve it through JavaScript.


There is an example in 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);


Mar 23, 2010 at 4:40 PM

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