You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Dear Sirs

I have the following JavaScript function that calls flick web service and display the retuned JOSN as an image:-

<script type="text/javascript">
$(function() {
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?",
  {
    tags: "gulmarg",
    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>
<div id="images"></div>

but since on real-world application i will be sending confidential information with the web service call such as username & password, so i need to call these web services from the server side instead from the client side using javascript as i am currently doing.

so my question is if it is possible to convert the above javascript function to be inside the JSON tool plugin?.

Best Regards

  • No labels