I have the following code:
var stereo_form =new Ext.form.FormPanel({
id: "stereoInfo_panel",
autoDestroy:true,
frame: true,
width: 410,
items:[{
xtype: 'textfield',
fieldLabel: 'DEM Resolution',
name: 'resolution'
},{
xtype: 'textfield',
fieldLabel: 'Matching Level',
name: 'matching'
},{
xtype: 'textfield',
fieldLabel: 'Size of DEM',
name: 'size'
}],
buttons: [{
text: 'Confirm',
handler: function(){//HELP ME!
}
}]
});
var w =new Ext.Window({
id: "stereoInfo_win",
title: "Stereo Reconstruction Parameters",
layout: 'form',
height: 160,
width: 350,
items: stereo_form
});
w.show();
w.focus();
3 problems:
- I want the rest of the script to pause running while this form is displayed until the button is pressed.
- When the button is pressed I want the form to be destroyed.
- When the button is pressed I want the 3 values to be passed to variables.
Can anyone help?
P.S. I just want the values to be assigned to global variables, not to a server-side file…
Solved this problem by creating a form with associated window and buttons as follows: