Extjs4 --- learning notes, synchronously updating...

Source: Internet
Author: User

1. action. result. message
Displays background error information;
Variable for which message needs to be defined in the background
Var form = this. up ('form'). getForm ();
If (form. isValid ()){
// Submit the Ajax request and handle the response
Form. submit ({
Success: function (form, action ){
Ext. Msg. alert ('success', action. result. message );
},
Failure: function (form, action ){
Ext. Msg. alert ('failed', action. result? Action. result. message: 'No response ');
}
});
}
2. Ext. MessageBox. show () is blank
Problems encountered during the background management system, when Ext. MessageBox. show () is used as the prompt box on some pages, it will be displayed blank, and then
Replaced by Ext. MessageBox. alert ()
3. pageSize: 5 is configured on the foreground, but the default value is 25,
Put pageSize: 5 in
[Javascript]
Ext. define ('ht. store. users ',{
// Do not forget to inherit
Extend: 'ext. data. store ',
// Remember to set the model
Model: 'ht. model. user ',
// Set automatic loading to true
AutoLoad: true,
PageSize: 10,
Proxy :{
Type: 'ajax ',
Url: 'user _ get ',
Reader :{
// The data format is json.
Type: 'json ',
Root: 'users ',
TotalProperty: 'totalcount'
}
}
});
Instead of putting it in the proxy. However, you can put it in the proxy again. Once mvc is used, it will not work.

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.