Notes below

On Wed, Mar 11, 2009 at 10:14 PM, Hafiz A Haq <[email protected]> wrote:

> 1. I am looking into the opitons of not syndicating the list of
> gadgets/metadata in my social networking site, i haven't yet found a
> central repository/directory from which i could get a comprehensive
> list of gadget definition xmls. As a hack i was thinking about
> fetching the igoogles gadget directory page and query using xpath to
> fethc the gadget xmls form there and provide them to be added by the
> users of my social networking site. But i feel this is not the right
> approach(should i really setup the mechanism to syndicate the gadgets
> supported by my site- including DB/Java/ClientSide?).


Currently there is no public application directory for you to use so until
that happens you will need to build your own. By syndicate do you mean,
allow gadgets hosted by your site to be embedded in other peoples web
pages?


>
>
> 2. Given that i have a list of gadget xmls(i dont have the gadget
> metadata - title , height, width...), can i use the metadata apis to
> fetch these information from the gadget xml and use it to render the
> gadgets dynamically. Can anyone throw some light on where to look and
> what to look? I have gone through
> http://markmail.org/thread/h7gnofdyf4g4o56i,
> http://markmail.org/thread/l3jsjf5r2ycyaevp and several others. I
> assume that i have to make use of
> org.apache.shindig.gadgets.servlet.RpcServlet to access the gadget
> metadata. I was thinking more of  a xhr approach, but it seems that's
> not the best approach, what is the proposed way of usage?


You should be able to call RpcServlet using XHR to do this, alternatively
you can do this server side either by calling RpcServlet or by running your
own internal equivalent embedded in Shindig. What do you see as the
disadvantages of XHR beside the roundtrip costs?


>
>
> Thanks and Regards,
> Hafiz
>
>
> --
>  He who asks is a fool for five minutes, but he who does not ask
> remains a fool forever.
>

Reply via email to