javascript - XML request in jQuery gets ignored -
i have build webpage focuses lot on xml file populate it. generated second 1 additional tasks. unfortunatly, everytime try parse it, dows not succeed. i using simple code demonstrate problem. stripped function, writing strings browser console. once excecute code, "pos1, pos3, pos4" success function not excecuted. know sounds dumb question, hard me, find mistake right now. function insertfirstbeginnerquestion(){ console.log('pos1'); $.ajax({ url: 'xml/questions.xml', type: 'get', datatype: 'xml', success: function(data) {console.log('pos2');}, error: function(){console.log('pos3');}, }); console.log('pos4'); }; are trying in server? code works me , loads xml properly. http method, have deploy in server , access using http protocol. otherwise give 404 error while trying load xml file.