In general, in the tree of Ext, table directly inherits the Ajax Asynchronous Method to retrieve data. However, sometimes Ajax is used independently.
How to Use Ajax separately in Ext? The basic usage is as follows:
Ext.Ajax.request({ url: "url", method: 'POST', params: {classID: 'value'}, success:function(response,result) { var data = Ext.util.JSON.decode(response.responseText); }, failure:function() { } });
If you want to pass all input in the form as a parameter, how can you use it? (By input name/value)
1. First find the input in all forms
Ext. Query ("input", from );
2. Use Ext. Data. Record to obtain the data. (I have thought about directly grouping Params strings, but I cannot. I cannot read them)
VaR rs = new Ext. Data. Record ({'id': Sid });
Rs. Set (sname, svalue );
3. Finally, pass Rs. Data to Params.
Params: Rs. Data
The above is a situation where there are many parameters in form and high security considerations.
If the image is simply connected to the end of the URL through the get method