Hello, I am using ExtJS version 2. I am clicking a button to add new tab to a TabPanel. The new tab function looks like this:
function addTab(tabTitle, targetUrl){
tabPanel.add({
title: tabTitle,
iconCls: 'tabs',
closable:true
}).show();
}
I would like to know if it's possible to get the targetUrl and display it in new tab. If i set html: targetUrl, my tab content would obviously be just a text with my URL. If I set up the autoLoad: {url: targetUrl} it works but it is reading the file contents as if they were texts or scripts.. The problem is that I would need to open images and I just get their source with autoLoad, not the actual display of the image. I just want my new tab to act like a new pop-up window with a default link.
Can anybody help ?
Thanks.