What about $.load() callback? Seems like its called in all possible
cases. The only disadvantage is error checking - is there any helper
in jQuery to check textStatus for error? This one is not particularly
beautiful.
if (textStatus == 'error' || textStatus == 'timeout' || textStatus ==
Are you using $.ajax or one of the other AJAX functions? $.get and the
rest only execute a callback upon success; you'll need to use $.ajax
if you want a callback for an error.
http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype has some
more information on that.
-T.J.
On Dec 9, 6:30 am,
Thank you for this information, indeed, i was using $.get.
On 9 déc, 18:13, T.J. Simmons theimmortal...@gmail.com wrote:
Are you using $.ajax or one of the other AJAX functions? $.get and the
rest only execute a callback upon success; you'll need to use $.ajax
if you want a callback for an
No problem, glad to help.
-T.J.
On Dec 9, 1:12 pm, Cameron van den Bergh
cameron.vandenbe...@gmail.com wrote:
Thank you for this information, indeed, i was using $.get.
On 9 déc, 18:13, T.J. Simmons theimmortal...@gmail.com wrote:
Are you using $.ajax or one of the other AJAX functions?
4 matches
Mail list logo