You're on the right track. If you do load a gadget XML file directly into a
browser, you'll just see the XML file itself, not a running gadget. Here,
try it with an old one of mine:

http://general-election-2008.googlecode.com/svn/trunk/results-gadget.xml

Just raw XML, right?

So you're right, we do need to get a Google server to interpret that XML for
us, and they have one at www.gmodules.com. We load a URL from that domain in
the browser and pass it the XML file URL as a parameter:

For example, to get the gadget customizer page which includes a working
version of that gadget:

http://www.gmodules.com/ig/creator?synd=open&url=http://general-election-2008.googlecode.com/svn/trunk/results-gadget.xml

Similar URLs are used when you embed a gadget in your own page; the Get the
Code button at the bottom of the gadget customizer gives a script tag to
use.

Do a View Source on this page and search for gmodules.com and you'll find a
bunch of examples:

http://maps.google.com/help/maps/elections/#2008_election

-Mike

On Fri, Aug 27, 2010 at 9:56 AM, Albert <[email protected]> wrote:

> Hello,
>
> I'm new to all this and have some questions:
>
> I want to create a Google gadget or a widget for my website which
> could be used also on other websites. As I understand the Google
> gadget, it is created as a xml-file with Google specific elements,
> like <module>. So my question is how can a browser interpret this xml-
> file, which is stored on my server, when it does not know those Google
> specifics? Or is there at the start of the gadget "some" connection to
> Google which then executes the gadget? As I understand a widget, it
> contains "only" html, css, js and flash, and is only an html-file,
> which every browser can handle.
>
> Perhaps you wonder what stupid questions I ask, but I'm really
> confused about all this new stuff.
>
> And perhaps there is someone who is kind enough and helps me.
>
> Thanks a lot in advance.
>
> Albert
>
> --
> You received this message because you are subscribed to the Google Groups
> "iGoogle Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-gadgets-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en.

Reply via email to