[jQuery] using .load() and getting a 404 response
<!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.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=269222922-11122006>> </SPAN>I was
wondering about using the .load() method with jQuery. </DIV>
<DIV dir=ltr align=left><SPAN class=269222922-11122006>></SPAN> I have
some code that works great, however if for some reason</DIV>
<DIV dir=ltr align=left><SPAN class=269222922-11122006>></SPAN> the page
that is being loaded using .load returns a 404 status, </DIV>
<DIV dir=ltr align=left><SPAN class=269222922-11122006>> </SPAN>jQuery
doesn't seem to recognize this - the code just continues</DIV>
<DIV dir=ltr align=left><SPAN
class=269222922-11122006>></SPAN> executing. </DIV>
<DIV><SPAN class=269222922-11122006><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=269222922-11122006><FONT face=Arial color=#0000ff size=2>You
may want to use jQuery.ajax instead of .load, it gives you a few more options
about how to handle errors. Still, even with .load, your callback should be
getting responseText and status as two arguments and you should be able to check
status.</FONT></SPAN></DIV>
<DIV><SPAN class=269222922-11122006></SPAN> </DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/