开发者

Problem in execution of error call in ajax request

开发者 https://www.devze.com 2023-03-22 18:47 出处:网络
$.ajax({ url: solrURL+\"/solr/db/select/?qt=dismax&wt=json&&start=\"+start+\"&rows=\"+end+\"&q=\"+query+\"&json开发者_如何学运维.wrf=?\",
$.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

精彩评论

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

关注公众号