For some reason, $.getJSON doesn't seem to work in default browser of android samsung (I tested on s4), and in iphone browser. Here is my code:
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> <script> $(document).ready(function() { $.getJSON('http://api.soundcloud.com/resolve?url=https://soundcloud.com/skizzymars/lucy-olivver-remix&format=json&consumer_key=b76e5f25b780dbebbd0138239e90eab9', function(data){ soundcloudObject = data; alert(data.title); }); }); </script>
It work in my PC, with any navigator, but not in mobile browser, I think there is something related to getjson.
Any idea please?
Thanks
source: stackoverflow.com
No comments:
Post a Comment