In Ext, the second click of the form reports an error or the internal control does not display the problem. It takes 2 days to solve the problem and record it.

Source: Internet
Author: User

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 !!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.