1 //<script type="text/javascript">
4 * Handles generic requests - an extension of Roo.data.Connection that runs the request
5 * on construction. shows error messages, and parses results.
8 var t = new Pman.Request({
9 url: baseURL + '/Images/Download/0/myfile.jpg',
11 success : function(data) {
14 failure : function () {
22 * @param {Object} cfg Configuration object.
23 * @cfg {String} url Location to download from.
24 * @cfg {String} method GET or POST (default GET), POST will create a form, and post that into the hidden frame.
25 * @cfg {Object/String/Function} (Optional) An object containing properties which are used as parameters to the
26 * request, a url encoded string or a function to call to get either.
30 Pman.Request = function(config){
32 Pman.Request.superclass.constructor.call(this, config);
33 config.failure = typeof(config.failure) == 'undefined' ? this.failure : config.failure;
37 Roo.extend(Pman.Request, Roo.data.Connection, {