[Tizen Application-dev] Internet resource request issue!

饶春平 raochunping at 163.com
Tue Sep 25 14:22:13 GMT 2012


Thanks a lot. I can get the internet resource. 








At 2012-09-25 11:04:24,"정대현" <darrenh.jung at samsung.com> wrote:
>Hi, 
>add "<access origin="http://www.165.com"/>" to config.xml.
>
>check out more info here: http://www.w3.org/TR/2012/REC-widgets-access-20120207/
>
>Good luck,
>Daehyeon
>
>------- Original Message -------
>Sender : ?春平<raochunping at 163.com>
>Date : 2012-09-25 11:50 (GMT+09:00)
>Title : [Tizen Application-dev] Internet resource request issue!
>
>Hi,
> 
>I'm going to write a Tizen Web App, can I use http request to get some internet Http resource (such as www.163.com) in my App.
> 
>I have used the code like below to get internet http resource but faild:
>================================
>function processData(data) {
>  // taking care of data
>}
> 
>function handler() {
>  if(this.readyState == this.DONE) {
>    if(this.status == 200 &&
>       this.responseXML != null &&
>       this.responseXML.getElementById('test').textContent) {
>      // success!
>      processData(this.responseXML.getElementById('test').textContent);
>      return;
>    }
>    // something went wrong
>    processData(null);
>  }
>}
> 
>var client = new XMLHttpRequest();
>client.onreadystatechange = handler;
>client.open("GET", "www.163.com");
>client.send();
>================================
>As I know the javascript http request cannot cross domain.
>Is there any other way for me to go, on Tizen?
> 
>Br,
>Colin Rao
>
>
>
>
>
>
>
>
>Jung, Daehyeon 
>Assistant Engineer 
>Software Center, Samsung Electronics 
>Mobile: +82 (10) 9114-0630
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tizen.org/pipermail/application-dev/attachments/20120925/83af1374/attachment.html>


More information about the Application-dev mailing list