+ * Load a remote JSON object using an HTTP GET request.
+ * All of the arguments to the method (except URL) are optional.
+ *
+ * @example $.getJSON("test.js", function(json){
+ * alert("JSON Data: " + json.users[3].name);
+ * })
+ *
+ * @example $.getJSON("test.js",
+ * { name: "John", time: "2pm" },
+ * function(json){
+ * alert("JSON Data: " + json.users[3].name);
+ * }
+ * )
+ *
+ * @name $.getJSON
+ * @type jQuery
+ * @param String url The URL of the page to load.
+ * @param Hash params A set of key/value pairs that will be sent to the server.
+ * @param Function callback A function to be executed whenever the data is loaded.
+ * @cat AJAX
+ */
+ getJSON: function( url, data, callback ) {
+ jQuery.get(url, data, callback, "json");
+ },
+
+ /**
+ * Load a remote page using an HTTP POST request. All of the arguments to
+ * the method (except URL) are optional.
+ *
+ * @example $.post("test.cgi")
+ *
+ * @example $.post("test.cgi", { name: "John", time: "2pm" } )
+ *
+ * @example $.post("test.cgi", function(data){
+ * alert("Data Loaded: " + data);
+ * })
+ *
+ * @example $.post("test.cgi",
+ * { name: "John", time: "2pm" },
+ * function(data){
+ * alert("Data Loaded: " + data);
+ * }
+ * )
+ *
+ * @name $.post
+ * @type jQuery
+ * @param String url The URL of the page to load.
+ * @param Hash params A set of key/value pairs that will be sent to the server.
+ * @param Function callback A function to be executed whenever the data is loaded.
+ * @cat AJAX