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

4 Comments

  1. Hi there,

    I think it would be more feasible to write your own implementation or as a Process Tool Plugin since there's a lot to cover rather than using a conventional standard plugin Joget has to offer.

    Cheers.

    1. Thanks for the reply, but can you explain more what you mean , and how can i create a Process Tool Plugin with samples?

      1. Hi there,

        You may check out Joget's source code and see how other Process Tool Plugins (JSON, Email, Bean Shell, Database Update etc) are done. From there, you may create your own plugin.

        Cheers.

        1. thanks , i already check them but i need links to some documentation to understand it better.