开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜