You'll need to use gadgets.io.makeRequest to fetch the response from your servlet. You can pass in a callback function that gets executed when the response is available. For example, to fetch a JSON string from my server, I could use the following snippet:
function sendRequest() { var params = {}; params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON; gadgets.io.makeRequest(<SERVLET_URL>, response, params); }; function response(respItem) { var jsonResponse = respItem.data; // ... }; Let me know if this answers your question. - Jason On Sep 3, 5:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, > > I am developing the application using the Open Social API I need some > help regarding to that I want to show the response in my gadget. The > response is send by the servlet. Can you please tell me how can I show > that response into that gadget. Thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---