3 messages in com.googlegroups.google-gadgets-apiRe: Syndication of url-type content -...
FromSent OnAttachments
vbs...@gmail.com29 Dec 2007 15:08 
Jerome (Guru)29 Dec 2007 15:36 
vbs...@gmail.com29 Dec 2007 16:56 
Subject:Re: Syndication of url-type content - newbie
From:Jerome (Guru) (jero@gmail.com)
Date:12/29/2007 03:36:29 PM
List:com.googlegroups.google-gadgets-api

Hi Michael,

As described here: http://code.google.com/apis/gadgets/docs/publish.html#Syndication to test your gadget in syndication mode (on your webpage), you should go to this URL (see your gadget xml URL as the "url" parameter: http://gmodules.com/ig/creator?synd=open&url=http://www.dynamicanswers.com/WilkesGadget.xml

On this page, adjust the parameters to suit your needs. Once you are happy with how this look, click the "Get the Code" button. The bottom of the page will provide you the code to put on your website, as for example: <script src="http://gmodules.com/ig/ifr?url=http:// www.dynamicanswers.com/WilkesGadget.xml&amp;synd=open&amp;w=320&amp;h=200&amp;title=Wilkes+Gadget&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

As you can see, the script URL is not your gadget XML, but a generate output from gmodules.com (a Google property). Your gadget XML is by no mean a valid script for a web browser to do anything with it, it must be processed (rendered) by gmodules.com before it can be consumed by a web browser.

Hope this helps,

Jerome

On Dec 29, 5:08 pm, "vbs@gmail.com" <vbs@gmail.com> wrote:

Late to the party but trying to catch up a bit. Here's what I'm attempting:

My site > gadget link > changeable html content

So far... I tested the following XML using the Google Gadget Editor (http://code.google.com/apis/gadgets/docs/gs.html#Scratchpad) and it works ok:

-------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <Module>   <ModulePrefs title="Wilkes Gadget"/>   <Content type="url" href="http://www.dynamicanswers.com/ RemoteFeedTest.html" /> </Module>

-------------------------------------------- It grabs my HTML content and displays it. No sweat.

Then I read that all I needed to "syndicate" to my site was wrap a script tag around it. Here's the page that says
this:http://code.google.com/apis/gadgets/docs/publish.html#Syndication

So I saved the above working XML into a file and loaded it onto the same web server. Here's my attempt to reference:

-------------------------------------- <script src="http://www.dynamicanswers.com/WilkesGadget.xml"></script>

-------------------------------------- But just slapping this into the body of an HTML page won't display anything.

What basic understanding have I skipped over in trying this simple example?

Thanks,