[jQuery] Arguments explanation for $.ajax method
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=137135221-19032008>According to
the jQuery docs, the AJAX method takes the following arguments (in addtion to
others with which I'm not concerned).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=137135221-19032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=137135221-19032008>What the docs do not
explain is the arguments for each of the event methods. It does tell you what
the arguments are, but it doesn't tell you what type they are, nor their
properties or methods. Can anyone elucidate? Specifically for the error and
success methods.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$.ajax({<BR><SPAN
class=137135221-19032008> </SPAN>url: 'http://<SPAN
class=137135221-19032008>site.doesnotexist.ca</SPAN>/',<BR><SPAN
class=137135221-19032008> </SPAN>cache: false,<BR><SPAN
class=137135221-19032008> </SPAN>timeout: 10000,<BR><SPAN
class=137135221-19032008><SPAN class=137135221-19032008>
</SPAN></SPAN>error: function(XMLHttpRequest, textStatus, errorThrown)
{<BR><SPAN class=137135221-19032008>
</SPAN>alert(errorThrown);<BR><SPAN class=137135221-19032008>
</SPAN>},<BR><SPAN class=137135221-19032008> </SPAN>success:
function(data){<BR><SPAN
class=137135221-19032008>
</SPAN>alert(data);<BR><SPAN class=137135221-19032008>
</SPAN>}<BR>});</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><SPAN style="FONT-SIZE: 14px"><B><FONT face="Century Gothic">
<DIV align=left><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007><FONT face=Arial
size=2>____________________________________</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=159130414-05012007><FONT face=Arial size=2><SPAN
class=159130414-05012007></SPAN></FONT></SPAN> </DIV>Andy
Matthews<BR></FONT></B></SPAN><SPAN style="FONT-SIZE: 11px"><FONT
face="Century Gothic"><SPAN
style="FONT-SIZE: 8.5pt; FONT-FAMILY: 'Century Gothic'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: yes">Senior
ColdFusion Developer</SPAN><BR></FONT></SPAN><SPAN style="FONT-SIZE: 11px"><FONT
face="Century Gothic"><FONT color=#808080><SPAN
style="FONT-SIZE: 11px"></SPAN><IMG alt="" hspace=0
src="cid:137135221@19032008-1279" align=baseline border=0></FONT><BR>Office:
615.627.9747<BR>Fax: 615.467.6249</FONT></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 11px"><FONT face="Century Gothic"><A
href="http://www.dealerskins.com/">www.dealerskins.com</A></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 11px"></SPAN> </DIV>
<DIV><SPAN style="FONT-SIZE: 11px"><SPAN style="FONT-SIZE: 12px"><FONT
face="Century Gothic">Total customer satisfaction is my number 1 priority! If
you are not completely satisfied with the service I have provided, please let me
know right away so I can correct the problem, or notify my manager <FONT
color=#fe6500>Aaron West</FONT> at <FONT
color=#0000ff><U>awest@dealerskins.com</U></FONT>.</FONT></SPAN></SPAN></DIV>
<DIV> </DIV></BODY></HTML>