Why is AJAX returning HTTP status code 0?

后端 未结 20 3078
野的像风
野的像风 2020-11-22 06:39

For some reason, while using AJAX (with my dashcode developed application) the browser just stops uploading and returns status codes of 0. Why does this happen?

20条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 07:17

    In an attempt to win the prize for most dumbest reason for the problem described.

    Forgetting to call

    xmlhttp.send(); //yes, you need this pivotal line!
    

    Yes, I was still getting status returns of zero from the 'open' call.

提交回复
热议问题