X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Connection.html diff --git a/docs/source/Connection.html b/docs/source/Connection.html index 54999ceb..12b630d6 100644 --- a/docs/source/Connection.html +++ b/docs/source/Connection.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.data.Connection
  * The Connection class encapsulates a connection to the page's originating domain, allowing requests to be made either
  * to a configured URL, or to a URL specified at request time.
@@ -45,26 +62,24 @@ Ext.define('Ext.data.Connection', {
     username: '',
     password: '',
 
-    /**
+    /**
      * @cfg {Boolean} disableCaching (Optional) True to add a unique cache-buster param to GET requests. (defaults to true)
-     * @type Boolean
      */
     disableCaching: true,
 
-    /**
+    /**
      * @cfg {String} disableCachingParam (Optional) Change the parameter which is sent went disabling caching
      * through a cache buster. Defaults to '_dc'
-     * @type String
      */
     disableCachingParam: '_dc',
 
-    /**
+    /**
      * @cfg {Number} timeout (Optional) The timeout in milliseconds to be used for requests. (defaults to 30000)
      */
     timeout : 30000,
 
-    /**
-     * @param {Object} extraParams (Optional) Any parameters to be appended to the request.
+    /**
+     * @cfg {Object} extraParams (Optional) Any parameters to be appended to the request.
      */
 
     useDefaultHeader : true,
@@ -77,14 +92,14 @@ Ext.define('Ext.data.Connection', {
         Ext.apply(this, config);
 
         this.addEvents(
-            /**
+            /**
              * @event beforerequest
              * Fires before a network request is made to retrieve a data object.
              * @param {Connection} conn This Connection object.
              * @param {Object} options The options config object passed to the {@link #request} method.
              */
             'beforerequest',
-            /**
+            /**
              * @event requestcomplete
              * Fires if the request was successfully completed.
              * @param {Connection} conn This Connection object.
@@ -94,7 +109,7 @@ Ext.define('Ext.data.Connection', {
              * @param {Object} options The options config object passed to the {@link #request} method.
              */
             'requestcomplete',
-            /**
+            /**
              * @event requestexception
              * Fires if an error HTTP status was returned from the server.
              * See <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">HTTP Status Code Definitions</a>
@@ -111,7 +126,7 @@ Ext.define('Ext.data.Connection', {
         this.mixins.observable.constructor.call(this);
     },
 
-    /**
+    /**
      * <p>Sends an HTTP request to a remote server.</p>
      * <p><b>Important:</b> Ajax server requests are asynchronous, and this call will
      * return before the response has been received. Process any returned data
@@ -279,7 +294,7 @@ failure: function(response, opts) {
         }
     },
 
-    /**
+    /**
      * Upload a form using a hidden iframe.
      * @param {Mixed} form The form to upload
      * @param {String} url The url to post to
@@ -386,7 +401,7 @@ failure: function(response, opts) {
         }, 100);
     },
 
-    /**
+    /**
      * Detect whether the form is intended to be used for an upload.
      * @private
      */
@@ -398,7 +413,7 @@ failure: function(response, opts) {
         return false;
     },
 
-    /**
+    /**
      * Get the form object from options.
      * @private
      * @param {Object} options The request options
@@ -408,7 +423,7 @@ failure: function(response, opts) {
         return Ext.getDom(options.form) || null;
     },
 
-    /**
+    /**
      * Set various options such as the url, params for the request
      * @param {Object} options The initial options
      * @param {Object} scope The scope to execute in
@@ -497,7 +512,7 @@ failure: function(response, opts) {
         };
     },
 
-    /**
+    /**
      * Template method for overriding url
      * @private
      * @param {Object} options
@@ -513,7 +528,7 @@ failure: function(response, opts) {
     },
 
 
-    /**
+    /**
      * Template method for overriding params
      * @private
      * @param {Object} options
@@ -530,7 +545,7 @@ failure: function(response, opts) {
         return params;
     },
 
-    /**
+    /**
      * Template method for overriding method
      * @private
      * @param {Object} options
@@ -544,7 +559,7 @@ failure: function(response, opts) {
         return method;
     },
 
-    /**
+    /**
      * Setup all the headers for the request
      * @private
      * @param {Object} xhr The xhr object
@@ -594,7 +609,7 @@ failure: function(response, opts) {
         return headers;
     },
 
-    /**
+    /**
      * Creates the appropriate XHR transport for the browser.
      * @private
      */
@@ -621,7 +636,7 @@ failure: function(response, opts) {
         return xhr;
     })(),
 
-    /**
+    /**
      * Determine whether this object has a request outstanding.
      * @param {Object} request (Optional) defaults to the last transaction
      * @return {Boolean} True if there is an outstanding request.
@@ -635,7 +650,7 @@ failure: function(response, opts) {
         return !(state === 0 || state == 4);
     },
 
-    /**
+    /**
      * Aborts any outstanding request.
      * @param {Object} request (Optional) defaults to the last request
      */
@@ -645,8 +660,8 @@ failure: function(response, opts) {
             id;
 
         if (request && me.isLoading(request)) {
-            /**
-             * Clear out the onreadystatechange here, this allows us
+            /*
+             * Clear out the onreadystatechange here, this allows us
              * greater control, the browser may/may not fire the function
              * depending on a series of conditions.
              */
@@ -667,7 +682,7 @@ failure: function(response, opts) {
         }
     },
 
-    /**
+    /**
      * Fires when the state of the xhr changes
      * @private
      * @param {Object} request The request
@@ -680,7 +695,7 @@ failure: function(response, opts) {
         }
     },
 
-    /**
+    /**
      * Clear the timeout on the request
      * @private
      * @param {Object} The request
@@ -690,7 +705,7 @@ failure: function(response, opts) {
         delete request.timeout;
     },
 
-    /**
+    /**
      * Clean up any left over information from the request
      * @private
      * @param {Object} The request
@@ -700,7 +715,7 @@ failure: function(response, opts) {
         delete request.xhr;
     },
 
-    /**
+    /**
      * To be called when the request has come back from the server
      * @private
      * @param {Object} request
@@ -731,7 +746,7 @@ failure: function(response, opts) {
         return response;
     },
 
-    /**
+    /**
      * Check if the response status was successful
      * @param {Number} status The status code
      * @return {Object} An object containing success/status state
@@ -761,7 +776,7 @@ failure: function(response, opts) {
         };
     },
 
-    /**
+    /**
      * Create the response object
      * @private
      * @param {Object} request
@@ -805,7 +820,7 @@ failure: function(response, opts) {
         return response;
     },
 
-    /**
+    /**
      * Create the exception object
      * @private
      * @param {Object} request
@@ -821,4 +836,6 @@ failure: function(response, opts) {
         };
     }
 });
-
\ No newline at end of file +
+ +