This question is locked. New answers and comments are not allowed.
I'm just trying to connect to my own website and get some JSON data and it always returns an error. If I change the dataType to "json" and make the url to an
identical local JSON file it works just fine.
What am I doing wrong here?
identical local JSON file it works just fine.
What am I doing wrong here?
$(document).on(
'pageinit'
,
'#home2'
,
function
(){
var
url =
'http://www.sovweb.com/woodProj/ProjList.ashx'
;
//var url = 'http://www.sovweb.com/woodProj/projList2.json';
//var url = 'data/projList2.json';
//var url = 'data/projList30.json';
$.ajax({
url: url,
dataType:
"jsonp"
,
async:
true
,
success:
function
(result) {
ajax.parseJSONP(result);
},
error:
function
(request,error) {
alert(
'Network error has occurred please try again!'
);
}
});
});