jQuery AJAX Code Builder

Generated jQuery Code

 

      jQuery Ajax Documentation      

jQuery AJAX Settings

Enable Property Value Notes
url URL of web service, don't forget the "quotes" (it's a string)
type Default is "GET"
async Default is true
crossDomain Default is false
dataType Type of data expected FROM server, default is intelligent guess
data Data sent TO server
contentType Type of data sent TO the server, default is "application/x-www-form-urlencoded; charset=utf-8"
accepts The content type sent in the request header that tells the server what kind of response it will accept in return. The supplied object is from the jQuery source code
timeout In milliseconds
cache Default is true, false for dataType 'script' and 'jsonp'
headers Default: {} An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport.
beforeSend Used to display an animated GIF icon.
complete Animated GIF icon is re-hidden here.
success
error Client side exceptions also go here

OnSuccess (data, textStatus, jqXHR){...}

 

OnComplete (jqXHR, textStatus){...}

 

OnError (qXHR, textStatus, errorThrown){...} // client exceptions also go in this area