PDA

View Full Version : Javascript Ext 3.1.1. Opening the link with a New Tab in the panel



thiyagu_rind
17 Jan 2011, 9:56 PM
Hi,

I need your help for the below.

we are having an UI with tree view in the left hand side and main panel. whenever an items is double clicked in the left hand side tree view, then the item(.rdl file) is opened in the main panel. The items are report file from ssrs. In one of the .rdl file we designed like a .aspx page which have hyperlinks.

Requirement:

when the user click the hyperlinks from the item(.rdl or aspx) page, the link has open with a new tab in main panel. we have the problem in accessing the main panel from the item(.rdl or .aspx).

we are using the Javascript Ext 3.1.1 for the treeview and main panel display.

Can anyone please help me. Let me know if you need more information.

Thanks in advance

Thanks
Thiyagarajan

Condor
18 Jan 2011, 12:40 AM
Something like:

tabPanel.body.on('click', function(e, t) {
tabPanel.add({
title: 'New tab',
autoLoad: {
url: t.href
}
}).show();
}, null, {delegate: 'a', stopEvent: true});