PDA

View Full Version : Problem with the events when loading a page within center of viewport



dariel
10 Mar 2010, 9:53 AM
First of all greetings to all. My problem is this: I have two web pages (P1 & P2 for short). I have a viewport in p1, and in the central region I'm carrying the p2. In p2 simply creates a window. Now the problem is that when p2 window displays in the central region of p1 viewport, events in the window do not work, for example when the window move the cursor hangs in the window. However, when p2 charge only in the browser everything works fine. Here I leave the code I'm using for clarity, I'm using Ext3.1

p1 code:


Ext.onReady(function(){
var viewport = new Ext.Viewport({
layout : 'border',
renderTo: Ext.getBody(),
items :
[{
height : 75,
region : 'north',
title : 'Does Santa live here?'
},
{
width : 150,
region : 'west',
title : 'The west region rules',
collapsible: true
},
{
region : 'center',
title : 'No, this region rules!',
id: 'c-panel'
},
{
region : 'south',
title : 'No, this region rules!',
collapsible: true
}]
});
var centerRegion = Ext.getCmp('c-panel');
centerRegion.add({
xtype : 'form',
id: 'prueba',
});
centerRegion.doLayout();

var centerPanelRegion = Ext.getCmp('prueba').getUpdater();
centerPanelRegion.update({
scripts: true,
url: 'p2.html'
});
}); -----------------------------

p2 code


Ext.onReady(function(){
var window = new Ext.Window({
title: 'Window',
id : 'window',
width : 300,
height : 150,
layout : 'fit'
});
window.show();
});