I currently have an error with my tizen emulator when I try to contact a `webservice` through `$.getJSON`.
I have a button, when I click on it, I get the JSON from a `webservice`, simple as that. On my computer browser, this works perfectly, but when I run the code as an app on Tizen's emulator (gear), the `GET` method returns : (canceled)
`Request cancelled`.
Here's the code (main.js):
$(window).load(function(){document.addEventListener('tizenhwkey', function(e) { if(e.keyName == "back") tizen.application.getCurrentApplication().exit(); }); $('.button').click(function(){ callWebService();//Calls webservice return false; }); function callWebService(){ //Works on desktop's Chrome $.getJSON( "https:// www . googleapis . com/freebase/v1/text/en/bob_dylan", function( data ) { $('#ol_home_products').html(data.result); }) .fail(function( err ) { //Never called console.log( err ); }); } });
I can see the cancel error in Networks's tab, but nothing shows up in Console.
I don't know where the problem is in Tizen gear emulator, the code works perfectly in browser.
Thanks.