RegisterPanel. js:
RegisterPanel = id: 'registerpanel 'layout: 'form' autoHeight: autoWidth: fileUpload: enctype: 'multipart/form-data' xtype: 'textfield' fieldLabel:' & nbsp; member name 'allowblank: blankText: 'enter the member name 'maxlength: 10, name: 'name' id: 'name' anchor: '000000' xtype: 'textfield 'inputtype: 'Password' anchor: '000000', allowBlank: blankText: 'enter the password 'name: 'Password' id: 'Password' fieldLabel:' & nbsp; password 'xtype: 'textfield' inputType :' Password 'anchor: '200', allowBlank: blktext: 'confirm the password 'name: 'confirmpassword' id: 'confirmpassword' fieldLabel:' & nbsp; confirm the password 'invalidtext: 'inconsistent passwords '(Ext. get ('Password '). dom. value = Ext. get ('confirmpassword'} fieldLabel: '& nbsp; Gender 'xtype: "panel" frame:, layout: "column", anchor: '200' columnWidth :. 40, xtype: 'Radio 'boxLabel: 'male' name: 'sex' checked:, inputValue: 'male' columnWidth :. 40 xtype: 'Radio 'boxlabel :' Female 'name: 'sex' inputValue: 'female 'xtype: 'textfield' fieldLabel: '& nbsp; qq' name: 'qq' id: 'qq' anchor: '000000' xtype: 'textfield' fieldLabel: '& nbsp; call 'name: 'phone' id: 'phone' anchor: '000000' allowBlank: blaktext: 'The phone number cannot be blank 'regex:/^ [+] {} (\ d) {} []? ([-]? (\ D) | []) {}) + $/, regexText: 'incorrect mobile phone number format! 'Xtype: 'textfield' fieldLabel: '& nbsp; mailbox 'name: 'email 'id: 'email 'anchor: '000000' regex:/^ ([\ w] +) (. [\ w] +) * @ ([\ w-] + \.) {} ([A-Za-z]) {2, 4} $/regexText: 'email format error! 'Xtype: 'textfield' fieldLabel: '& nbsp; dormitory No. 'name: 'address' id: 'address' anchor: '000000' xtype: 'textfield' name: 'membphoto 'inputtype: 'file' fieldLabel: '& nbsp; upload profile picture 'labelalign: 'right' anchor: '000000' buttonAlign: 'center' text: 'Submit' Ext. messageBox. alert ("Submit" text: 'cancel '})
The page <javascript> is as follows:
(Ext. getCmp ('registerwindow' Ext. getCmp ('registerwindow' var registerWindow = id: 'registerwindow' title: 'Member registration' height: 320 width: 340 modal:, resizable:, plain :}
You can solve the problem by changing it to the red part above. profect !!