ajaxErrorHandler ?
, . jQuery jQuery ?
, . "test.json", "{test:" hello world "}" , :
<script type="text/javascript" src="http://malsup.com/jquery/jquery-1.2.6.js"></script>
<script type="text/javascript" src="http://malsup.com/jquery/form/jquery.form.js?2.28"></script>
<form class="ajax_form" action="test.json" method="post"><input type="text" name="q" /><input type="submit" /></form>
<br/>
<form class="ajax_form" action="test.json" method="post"><input type="text" name="q" /><input type="submit" /></form>
<script>
$('.ajax_form').ajaxForm({
dataType: 'json',
error: function() {alert("error");},
success: function(response) {alert(response.test);}
});
</script>