It is my first time to apply jquery ajaxForm on a class like the following
<form class="ajax_form"...><input type="text" name="q" /><input type="submit" /></form>
<form class="ajax_form"...><input type="text" name="q" /><input type="submit" /></form>
<script>
$('.ajax_form').ajaxForm({
dataType: 'json',
error: ajaxErrorHandler,
success: function(response) { // do some ui update .. }
});
</script>
Now after Ajax call is completed I always get into error section although firebug didn't report any errors response not sure what I did wrong.