Greetings, recently i found a problem in the model x3-02 doing some testing a working app (at least in other models).
When i try to make a request via ajax it displays a popup error message complaining about this : "Unable to establish secure connection. Check phone's date and securiry settings".
Well i check all of that, but, honestly, i haven't found a clue about this.
Does anyone has been experiencing this problem in x3-02? is there a way to fix it?
Well that is all.
Thanks for advance.
Grettings!!
Víctor
Added some code:
in index.html:
<input type="button" value="apretar" onclick="displayRegions(0)" />
in scripts.js: (included in index.html using script tag)
var REGIONS_URL = 'http://infonor.no-ip.info/victor/weather/regions.php';
function displayRegions(loc)
{
try
{
var requestURL = REGIONS_URL + '?loc=' + loc;
var xhr = new XMLHttpRequest();
xhr.open('GET', requestURL, false);
xhr.send(null);
document.body.innerHTML = xhr.responseText;
}
catch (e)
{
document.body.innerHTML = "fail";
}
}

Reply With Quote
(is the same as above)
.


