PDA

View Full Version : Opening Archive databasse in new window.



Balaji Vaddepalli
1 Dec 2009, 10:02 AM
Hi All,

I am trying to open the archive database link in new window from my database but not suceed, I am using the below code, can any one tell me how can we do this?


Function declaration in Ext.onReady(function()


var archmod = {
title: 'Archive',
autoScroll: true,
id: 'archive',
bodyCfg : {
tag : 'iframe',
frameBorder : 0,
style : {overflow : 'auto'},
src : 'http://mddev100/ACN/PaidCheckCopyRequestWebArchive.nsf?OpenDatabase',
width : '100%',
plain: false,
height : '100%'
}

-----------------------------------------------------------------------------------

xtype: 'button',
bodyStyle: 'width:20px',
text: 'Archive',
//target: 'center',
listeners: {click: function(){
/*
if(Ext.get("archive")) {
centerTabPanel.setActiveTab("archive")
} else {
var newtab = centerTabPanel.add(archmod).show();
}

*/
var query='http://mddev100/ACN/PaidCheckCopyRequestWebArchive.nsf';
var qWin = new Ext.Window({
title: 'Archive',
width:600,height:400,
modal:true,
autoLoad:{
url:query (http://www.extjs.com/forum/query)
}
});
qWin.show();



Thanks in advance...

Regards
Balaji.

jratcliff
7 Jan 2010, 4:17 PM
what happens if you change autoLoad to this:



autoLoad : {
url : query,
scripts : true
}


However, I think an iframe would work best for this in your Ext.Window so instead of using autoLoad use the html property to do this:



html : "<iframe src='" + query + "' frameBorder='0' width='100%' height='100%' />"