4 messages in com.googlegroups.google-gadgets-api[Google-Gadgets-API] Re: libs paramet...
FromSent OnAttachments
Tom Davies29 Jun 2008 23:50 
Dan (Google Employee)30 Jun 2008 10:40 
Tom Davies30 Jun 2008 14:24 
Dan (Google Employee)01 Jul 2008 10:40 
Subject:[Google-Gadgets-API] Re: libs parameter and writing URL gadget for multiple containers
From:Dan (Google Employee) (api.@google.com)
Date:06/30/2008 10:40:55 AM
List:com.googlegroups.google-gadgets-api

Hi Tom,

Unfortunately, you're not able to pull out library URLs from Shindig at the moment. I believe the lack of motivation for this feature is the upcoming REST APIs which will allow equivalent functionality on your own server. These APIs aren't currently available, but will be as soon as the 0.8 version rolls out to the various sandboxes (orkut, iGoogle, etc.).

Best, Dan

On Jun 29, 11:51 pm, Tom Davies <tgda@gmail.com> wrote:

Hi,

I have a working *url* gadget in the iGoogle sandbox, but I have hard- coded the prefix needed for each library URL.

Thus I can't use the same gadget in shindig.

Is there a standard way of determining what prefix each lib script tag needs?

That is, my code looks like:

String libParameter = request.getParameter("libs"); String[] libs = libParameter.split(","); for (String lib : libs) {                                 libsHtml.append("<script
src='http://www.google.com/ig/f/").append(lib).append("'></script>\n");

}

How can I determine 'http://www.google.com/ig/f/'at runtime instead of hard coding it?

Thanks,   Tom