slider2_wev8.js
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Ext JS Library 2.0.2
* Copyright(c) 2006-2008, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
/*
*
*/
Ext.onReady(function() {
var win = new Ext.Window({
title:'Slider Test Form',
collapsible:true,
closable:false,
width:400,
height:300,
layout:'fit',
items:{
xtype:'form',
id:'slider-form',
bodyStyle:'padding:5px',
baseCls:'x-plain',
url:'echo.php',
defaults:{width:200},
// defaults:{anchor:'95%'},
items:[{
xtype:'textfield',
name:'textfield1',
anchor:'95%',
fieldLabel:'Text Field'
},{
xtype:'sliderfield',
name:'slider1',
minValue:50,
maxValue:100,
anchor:'95%',
fieldLabel:'Slider'
}]
},
buttons: [{
text: 'Save',handler:function() {
Ext.getCmp('slider-form').getForm().submit({
success:function(form, action) {
alert('Success:\n' + action.response.responseText);
},
failure:function(form, action) {
alert('Failure: ' + action.failureType);
}
});
}
},{
text: 'Cancel'
}]
});
win.show();
});
// end of file