Pman.Request.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 13 Sep 2010 04:42:37 +0000 (12:42 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 13 Sep 2010 04:42:37 +0000 (12:42 +0800)
Pman.Request.js

index e69de29..0306c65 100644 (file)
@@ -0,0 +1,27 @@
+//<script type="text/javascript">
+/**
+* @class Pman.Request
+* Handles generic requests  - an extension of Roo.data.Connection that 
+* shows error messages, and parses results..
+* Usage:
+<pre><code>
+var t = new Pman.Request({
+    url: baseURL + '/Images/Download/0/myfile.jpg',
+    params: { .... },
+    success : function(data) {
+        
+    },
+    failure : function () {
+         
+    }
+});
+
+</code></pre>
+* 
+* @constructor
+* @param {Object} cfg   Configuration object.
+* @cfg {String} url     Location to download from.
+* @cfg {String} method     GET or POST (default GET), POST will create a form, and post that into the hidden frame.
+* @cfg {Boolean} newWindow (optional) download to new window
+     
+*/
\ No newline at end of file