Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / src / data / ScriptTagProxy.js
index a8f9e50..ea7c036 100644 (file)
@@ -1,6 +1,6 @@
 /*!
- * Ext JS Library 3.1.0
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.1.1
+ * Copyright(c) 2006-2010 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
  */
@@ -53,6 +53,17 @@ if ($callback) {
     header('Content-Type: application/x-json');\r
     echo json_encode($output);\r
 }\r
+</code></pre>\r
+ * <p>Below is the ASP.Net code to do the same thing:</p><pre><code>\r
+String jsonString = "{success: true}";\r
+String cb = Request.Params.Get("callback");\r
+String responseString = "";\r
+if (!String.IsNullOrEmpty(cb)) {\r
+    responseString = cb + "(" + jsonString + ")";\r
+} else {\r
+    responseString = jsonString;\r
+}\r
+Response.Write(responseString);\r
 </code></pre>\r
  *\r
  * @constructor\r