the alert message is not showed in android emulator. I've already read this and this, and did not find any info that helped.
The code is:
$.ajax({
url: "-url here-",
data: { - data here - },
type: "POST",
dataType: "xml",
statusCode: {
0: function () {
alert('Thank You');
},
200: function () {
alert('Thank You');
}
}
});
and:
if (hourFrom1=="N/A" || minFrom1=="N/A" || hourTo1=="N/A" || minTo1=="N/A") {
alert('Please check time input.');
return;
}
if (customer=="" || project=="" || assignment=="") {
alert('Please check customer/activity description input.');
return;
}
I use jquery-1.11.1.min.js.
None of those 4 alerts doesn't work. In the first part, the data is sent OK.
They work pretty well in browsers though..
What am I missing?
Thank you.
EDIT
JS is allowed:
WebView myWebView = (WebView) findViewById(R.id.webView1);
WebSettings s = myWebView.getSettings();
s.setJavaScriptEnabled(true);