/*!
- * 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
*/
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