Extjs4.0.7 提交表单
来源:互联网 发布:mac图标放在桌面 编辑:程序博客网 时间:2024/05/20 23:06
var simple = Ext.create('Ext.form.Panel', {
standardSubmit: true, // false为Ajax提交设置成true就可以去一个新URL了
//action:'extjs1.jsp',
url:'extjs1.jsp',
frame:true,
title: '用户登录',
bodyStyle:'padding:5px 5px 0',
width: 400,
//height:200,
x: 500,
y: 150,
fieldDefaults: {
msgTarget: 'side',
labelWidth: 75
},
defaultType: 'textfield',
defaults: {
anchor: '100%'
},
items: [{
fieldLabel: '用户名',
name: 'userName',
id: 'userName',
allowBlank:false
},{
fieldLabel: 'Last Name',
inputType:'password',
id: 'password',
name: 'password'
},{
fieldLabel: 'Company',
name: 'company'
}, {
fieldLabel: 'Email',
name: 'email',
vtype:'email'
}, {
fieldLabel: 'Search',
name: 'query',
xtype: 'checkboxfield'
},
{
xtype: 'timefield',
fieldLabel: 'Time',
name: 'time',
minValue: '8:00am',
maxValue: '6:00pm'
}],
buttons: [{
text: 'submit',
handler: function() {
var form = this.up('form').getForm();
if (form.isValid()) {
// 默认是Ajax提交
form.submit();
}
}
},{
text: 'Cancel'
}]
});
simple.render(document.body);
0 0
- Extjs4.0.7 提交表单
- Extjs4提交表单
- extjs4.2.0表单数据提交
- extjs4 表单提交 和 Ajax请求 示例
- ExtJS4——表单的提交重置
- extjs4 表单提交到struts2 action 的响应问题
- ASP.NET+ExtJs4.0+表单提交submit,上传图片到服务器
- Extjs4中form表单提交后无法进入success函数的问题
- ExtJS4 button提交表单请求与直接ajax请求的一点小区别
- Extjs4表单布局经验
- extjs4 表单验证自定义
- extjs4 formpanel 表单布局
- ExtJS4 表单横向布局
- Extjs4.0.7 submit() 提交后获取异常方法
- 表单提交
- 表单提交
- 表单提交
- 表单提交
- 其实自己胆量真的还不够
- hibernate 4.x buildSessionFactory 的使用
- 深入理解JavaScript系列(4):立即调用的函数表达式
- C语言中scanf、getchar、gets函数的比较
- 关于*p++ *(p++) (*p)++ *++p *(++p) ++*p ++(*p)
- Extjs4.0.7 提交表单
- 如何理解指向指针的指针?
- Java中getResourceAsStream的用法
- Android开发 语音识别技术之科大讯飞语音识别(一) — 语音听写
- Linux rhel Access denied for user ’root’@’localhost’ (using password: YES)
- Python 书籍推荐
- MyReport 2.6.4.0新功能
- c++ 之类的前置声明
- 3ds Max骨骼动画