GBenji
11 Jan 2012, 6:15 AM
Hi,
I wanna put a cgi page in a flying window on my website.
I wanted to use an Iframe but it doesn't exist in ExtJs 4, whatever I decided to use an Ext.window.Window like that :
Ext.define('X.X.X.X',{
extend: 'Ext.panel.Panel',
frame:true,
alias: 'widget.X',
loadMask:true,
height: 600,
initComponent: function() {
Ext.Ajax.request({
url: X_URI, // the path of my cgi
success: function(response, requester){
win = new Ext.Window({
id: 'XWindow',
layout:'fit',
width:800,
height:300,
closeAction:'hide',
plain: true,
html: response.responseText
});
},
failure: function(){console.log('erreur')}
});
this.callParent(arguments);
}
});
My problem is : In this second window when I click on a link that change my main window :((
How can I do that when I click on a second window link, it changes the second window but not the main window ?
Thanks
I wanna put a cgi page in a flying window on my website.
I wanted to use an Iframe but it doesn't exist in ExtJs 4, whatever I decided to use an Ext.window.Window like that :
Ext.define('X.X.X.X',{
extend: 'Ext.panel.Panel',
frame:true,
alias: 'widget.X',
loadMask:true,
height: 600,
initComponent: function() {
Ext.Ajax.request({
url: X_URI, // the path of my cgi
success: function(response, requester){
win = new Ext.Window({
id: 'XWindow',
layout:'fit',
width:800,
height:300,
closeAction:'hide',
plain: true,
html: response.responseText
});
},
failure: function(){console.log('erreur')}
});
this.callParent(arguments);
}
});
My problem is : In this second window when I click on a link that change my main window :((
How can I do that when I click on a second window link, it changes the second window but not the main window ?
Thanks