I’m trying to do a simple JSON request the following way:
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js">
</script>
<script>
(function(){
$.getJSON("http://smart-ip.net/geoip-json?callback=?", function (data) {
alert(data.host)
});
})();
</script>
</head>
<body>
</body>
</html>
This works fine on desktop chrome and other browsers, now I’ve tried using jquery mobile and tried all browsers on my phone, it used to work on android chrome beta but stopped with the final release, any ideas why this isn’t running on android?
Update: apologies for the late update, I found out that Omega Rom for some weird reason is messing around with my jquery requests.. switched back and forth couple of times from Omega to stock rom and it was clear that Omega rom was causing weird behaviour.
Does it help if you remove the self-execution syntax, like this?