Function Description
Takes two parameters. Makes a http request with the options. Options are method stands for 'GET' or 'POST', type spefies return type("XML","JSON","SCRIPT"),error is function that is called when operation fails,success is function that is called when operation is successful,params are parameters that are passed,before is function that is called before ajax request,asyn("true","false") indicates call is asynchronous or not,callback: function that is called after ajax request.
Function prototype
_.ajax(url,options). Makes a http post or get request to @url with @options. Ajax has default values for options which are overwritten by given @options.
Function parameters
@url - url that request will be send
@options - ajax request options
Sample HTML DIV element is given to try UPJS function.
Orange DIV
Code area to try out _.ajax function.