jquery ajax readystate 0 responsetext status 0 statustext error

前端 未结 5 1445
执念已碎
执念已碎 2020-11-28 14:21

I am getting the following error: jquery ajax readystate 0 responsetext status 0 statustext error when giving it: url(http://www.tutorialspoint.com/proto

5条回答
  •  攒了一身酷
    2020-11-28 15:10

    I was getting this error and in my case it was not due to same origin policy. This answer is quite helpful.

    My case was, I had a link button and I was not using e.PreventDefault()

    ASPX

    
    

    Javascript

    function VerifySearch(sender, e) {        
        e.preventDefault();
        $.ajax({
                    type: 'POST',
        .............
        }
        return false;
    }
    

提交回复
热议问题