[jQuery] $.ajax() with json output
If you specify json output in the $.ajax call and the resulting output isn't
well-formed json for any reason, it causes a javascript error on the eval in
$.ajaxData. Has anyone else encountered this? My quick fix was to wrap the
eval in a try/catch and return null if there was an error, does that sound
like the right course? I think it's desirable for the ajax code to be able
to handle bad json, especially when I'm the one writing the server-side
code. :) The script case in ajaxData probably needs similar treatment.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/