PDA

View Full Version : Change properties to another window



Newb2010
22 Nov 2010, 4:14 AM
Hello,

I want to change the properties of another window, the code below does not work, thank you for your help.


<script type="text/javascript">

Ext.onReady(function() {
var win_1 = new Ext.Window({
id : "my_window_1",
shadow : true,
width : 150,
height : 200,
title : "Title_of_window_1",
})
win_1.show();

});


function change_window_1() {
var win_2 = new Ext.Window({
applyTo : "my_window_1",
shadow : false,
width : 200,
height : 250,
title : "New_title_of_window_1",
})
win_2.show();

}

</script>


<input type="button" name="change_window_1" value="Change title window 1" onclick="change_window_1();" />