Languages

Menu
Sites
Language
Access External Network

Hello,

We have the following code to access external network. It's working on Tizen Web Simulator, but not working on emulator and development phone. We also add access permission in config.xml. Is there anything else we need to do? Please help. Thanks.
<access origin="*" subdomains="true"/>

var xmlHttp = null;

xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );

xmlHttp.send(null); //exception 101 here
var str = xmlHttp.responseText;

Responses

2 Replies
talari praveen kumar

Hi

Please check whether your device has internet connectivity or not? I have tried using the url "https://pais-dev.zypr.net/api/v2/weather/forecast/?token=" + _token " and it is working fine. Please share the url you are using so that i can check whether there is any problem with the url

Marco Buettner

You can also try to this on a config.js file

$(document).bind("mobileinit", function() {
    $.mobile.allowCrossDomainPages(true);
});

and bind the file before your own scripts starts and after Tizen Web Framework