Nov 02, 2009, 8:13 PM
Open window on page load
Hi,
I create a window by clicking on a button which uses the following script:
I also tried to pass two parameters for width and height to the above script, but it doesn't work. I am trying to use one script with different window size.
Thanks for your help.
Kamal
I create a window by clicking on a button which uses the following script:
function createWindow(urls, winid, wintitle) {
var w = new Ext.Window(Ext.apply({renderTo: Ext.getBody(),
id: winid,
title: wintitle,
width: 520,
height: 355,
maximizable: false,
minimizable: false,
showMask: true,
modal: true,
autoLoad: {
url: urls + window.location.search,
mode: "iframe",
showMask: true
}
}));
w.on("render", function() { this.iframe.dom.contentwindow.parentWindow = this; }, w, { delay: 10 });
w.center();
w.show();
}
- Is it possible to call and open the window in Page_Load? If it's possible, how?
I also tried to pass two parameters for width and height to the above script, but it doesn't work. I am trying to use one script with different window size.
- Is it possible?
Thanks for your help.
Kamal