_.post

Function Description
Takes two, three and four parameters. For two parameters, it makes a http post request and result returned to the callback function. For three parameters, if third parameter of the function is type(XML,JSON,SCRIPT), it makes a http post request with result returned in given type to callback function. Otherwise, third parameter is data, it makes a http post request with the data given to callback function. For four parameters, it makes an http post request with data given and result returned in given type to callback function.
Function prototype
_.post(url,callback) or _.post(url,type,callback) or _.post(url,data,callback) or _.post(url,data,type,callback). Makes an http post request with given @url and the @data and returns the result to the @callback in @type format. @type values are "XML", "JSON" and "SCRIPT".
Function parameters
@url - url that request will be send
@data - data to be sent to server
@type - type of response such as JSON
@callback - function to be called with response data
Sample HTML DIV element is given to try UPJS function.
Orange DIV
Code area to try out _.post function.