I have html page and call app.request in javascript. Work fine from my local host, but return 500 when I call from web server (GoDaddy).
app.request({
url: ‘\Default.aspx/ReportList’,
method: ‘POST’,
dataType: ‘json’,
async: false,
contentType: ‘application/json; character=utf-8’,
data: {},// postData,
success: function (data, textStatus) {
photos = JSON.parse(data.d);
//return;
},
error: function (xhr, textStatus, errorThrown) {
// We have received response and can hide activity indicator
// app.preloader.hide();
console.log(textStatus);
console.log(xhr.response);
console.log(errorThrown);
app.dialog.alert('Report list error' + errorThrown);
//return;
}
}
)
Request | @ | framework7.bundle.min.js:13 |
---|---|---|
(anonymous) | @ | (index):138 |