ExtJS回车提交
2009-09-10 10:15
239 查看
var myform = new Ext.form.FormPanel( {
bodyStyle : 'padding-top:6px',
defaultType : 'textfield',
labelAlign : 'right',
labelWidth : 55,
labelPad : 2,
//frame : true,
method:'POST',
//增加表单键盘事件
keys:[
{
key: [10,13],
fn:surely
} ],
defaults : {
allowBlank : false,
width : 158
},
items : [{
cls : 'user',
name : 'username',
fieldLabel : '帐 号',
blankText : '帐号不能为空'
}, {
cls : 'key',
name : 'password',
fieldLabel : '密 码',
blankText : '密码不能为空',
inputType : 'password'
}, {
cls : 'key',
name:'randCode',
id:'randCode',
fieldLabel:'验证码',
width:70,
blankText : '验证码不能为空'
}],
buttons:[
{
text:'确定',
id:'sure',
handler:surely
},
{
text:'重置',
id:'clear',
handler:reset
}]
});
return myform;
},
bodyStyle : 'padding-top:6px',
defaultType : 'textfield',
labelAlign : 'right',
labelWidth : 55,
labelPad : 2,
//frame : true,
method:'POST',
//增加表单键盘事件
keys:[
{
key: [10,13],
fn:surely
} ],
defaults : {
allowBlank : false,
width : 158
},
items : [{
cls : 'user',
name : 'username',
fieldLabel : '帐 号',
blankText : '帐号不能为空'
}, {
cls : 'key',
name : 'password',
fieldLabel : '密 码',
blankText : '密码不能为空',
inputType : 'password'
}, {
cls : 'key',
name:'randCode',
id:'randCode',
fieldLabel:'验证码',
width:70,
blankText : '验证码不能为空'
}],
buttons:[
{
text:'确定',
id:'sure',
handler:surely
},
{
text:'重置',
id:'clear',
handler:reset
}]
});
return myform;
},
相关文章推荐
- ExtJS带验证码登录框[新增回车提交]
- ExtJS带进度条的登陆验证+验证码+回车提交
- ExtJS带验证码登录框[新增回车提交]
- ExtJS表单提交时,不用鼠标点击按钮提交,直接通过回车键提交
- jquery 监听回车提交
- HTML防止input回车提交表单
- 用回车提交表单
- ExtJs中form表单提交的三种方式
- ExtJS中FormPanel实现数据加载和提交
- extjs 3,struts 动态form 提交action不能自动装配值问题
- 防止按回车键后自动提交内容[网页特效]-脚本技巧特效
- ASP.NET中多按钮回车提交表单
- 表单按回车自动提交(转自他人)
- Extjs4 Store异步提交
- H5与CSS(1)——回车自动提交与禁止回车自动提交
- 回车替换Tab 并不会 提交表单 IE Chrome 通过
- 阻止表单按回车默认提交事件
- 回车键替代按钮提交数据
- asp.net页面中 回车触发提交事件(转)
- js禁止回车提交表单的示例代码