Problem in execution of error call in ajax request
$.ajax({
url: solrURL+"/solr/db/select/?qt=dismax&wt=json&&start="+start+"&rows="+end+"&q="+query+"&json开发者_如何学运维.wrf=?",
async:false,
dataType: 'json',
success: function(){
getSolrResponse(sort,order,itemPerPage,showPage,query,solrURL);
}
,error:function(){
alert("there is an error");
}
})
I have this ajax request, but even if url is not correct, than also error code is not executing, why so. please tell me the solution.
Try to remove the async: false setting and tell us if it helped.
Use FireBug Net panel to debug the AJAX request - just see the request and response. THen you can open the request in new tab and play with it
精彩评论