I have made a mistake on my story.
I inserted the php file inside my project (in AppStudio files) so I wasn’t calling the php file from the www of the server but from my mob phone.
Nevertheless still, after changing my Ajax call to triger the correct .php (register.php) file on the server, using :192.168.1.9/site1/register.php, I get the followign error: file:///android_asset/www/192.168.1.9/househeatingcontrol/register.php net::ERR_FILE_NOT_FOUND
$.ajax({
type: "POST",
url: "192.168.1.9/site1/register.php",
data:strData,
crossDomain: true,
cache: false,
success: function(d){
if (d == 'This email is already being used') {
alert ("The email is already being used. New account with existing email cannot be created.")
return true;
}
alert("Thank you for registering!");
alert (d);
},
error: function(e) {
alert (e)
alert("An error has occured. Please contact reseller.")
}
});
}
I think we are very close to nailing down the problem. The register.php is not found (although existing in www/site1/ but phonegap is asking for android_asset/www/192.168.1.9/site1/register.php
. How can I direct the app to ask for this specific file on the server and not localy?
I will post a situation on Greece! Just a hint: Coronavirus is sending a global message: We should promote solidarity in the society in order to survive. Nature is above all markets. Lets hope this message will reach the ones taking decisions…