Pman.Request.js
[Pman.Core] / Pman.Request.js
1 //<script type="text/javascript">
2 /**
3 * @class Pman.Request
4 * Handles generic requests  - an extension of Roo.data.Connection that 
5 * shows error messages, and parses results..
6 * Usage:
7 <pre><code>
8 var t = new Pman.Request({
9     url: baseURL + '/Images/Download/0/myfile.jpg',
10     params: { .... },
11     success : function(data) {
12         
13     },
14     failure : function () {
15          
16     }
17 });
18
19 </code></pre>
20
21 * @constructor
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 {Boolean} newWindow (optional) download to new window
26      
27 */