Load API in tizen web app

Load API in tizen web app

BY 02 Jul 2013 Web Application Development

Hi All;

I developed a web application with the Tizen 2.1. I use jQuery.getJSON(); to get the Flickr API. For example

<!DOCTYPE html>
<html>
<head>
  <style>img{ height: 100px; float: left; }</style>
  <script src=”http://code.jquery.com/jquery-1.5.js”></script>

  <script src=”/usr/share/tizen-web-ui-fw/latest/js/jquery.js”></script>
  <script src=”/usr/share/tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js”></script>
</head>
<body>
  <div id=”images”> </div>
<script>
$.getJSON(“http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?”,
  {
    tags: “flower”,
    tagmode: “any”,
    format: “json”
  },
  function(data) {
    $.each(data.items, function(i,item){
      $(“<img/>”).attr(“src”, item.media.m).appendTo(“#images”);
      if ( i == 5 ) return false;
    });
  });</script>
</body>
</html>

It is run OK on chrome, but can not run on the Tizen.

I have added  <access origin=”http://api.flickr.com” subdomains=”true”/>  in config.xml file.

please help me.

thanks,

Written by