extjs form

1580 단어 jspext
Ext.onReady(function() {
	// Ext.MessageBox.alert("title","msg");
	Ext.QuickTips.init();
	var form = new Ext.FormPanel({
		frame : true,
		width : 300,
		// monitorValid:true,// 
		layout : "form",
		labelWidth : 70,
		title : " ",
		labelAlign : "left",
		renderTo : Ext.getBody(),
		submit : function() {
			this.getEl().dom.action = 'ext.jsp', this.getEl().dom.method = 'POST', this.getEl().dom.submit();
		},
		items : [{
					xtype : "textfield",
					fieldLabel : " ",
					// id:"UserName",
					allowBlank : false,
					blankText : " , ",
					name : "UserName",
					anchor : "90%"
				}, {
					xtype : "textfield",
					fieldLabel : " ",
					// id:"SmallName",
					name : "SmallName",
					anchor : "90%"
				}, {
					xtype : "datefield",
					fieldLabel : " ",
					// id:"RegDate",
					name : "RegDate",
					anchor : "90%"
				}],

		buttons : [{
					text :" ",
					handler : login,
					formBind : true
				}, {
					text :" ",
					handler : reset
				}]
	});
	function login() {
		form.form.submit();//
	}
	function reset() {
		form.form.reset();//
	}

});

좋은 웹페이지 즐겨찾기