Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Dear Sirs

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

Code Block
langjavascript
<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