Hi Chris,

Regarding your first question, yes, you can take existing html and
Javascript and gadgetize it. If the Javascript does everything locally
(no XML HTTP request), this should work as a html type gadget. If
there is some complication, you can just get this running on your own
website first, and then create a gadget wrapper using a type url
gadget (see 
http://code.google.com/apis/gadgets/docs/legacy/fundamentals.html#URL).
The gadget would only be an iframe displaying your webpage (with your
PGN viewer). You would have to make sure the page renders fine in a
gadget limited width, or ensure the gadget is running in canvas mode.

To pass a string of information to the gadget, the easiest way to go
is to make use of UserPrefs. This is handled by the framework and this
requires very little coding from your end. Other more advanced HTML or
AJAX solutions are possible too.

Finally, yes, you can embed this gadget on your google sites webpage.
For ease of use, you should have your gadget added to the syndicated
gadget directory first. There is an insert menu which allows you to
select a syndicated mode gadget from the directory, specify any
required UserPrefs and border color/title/etc., and get the gadget
added on your page.

Jerome

On Oct 23, 3:32 pm, ChrisNeale <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Due to the javascript restrictions on html I was wondering if it would
> be possible to put an existing html/javascript pgn viewer i have into
> a gadget.
>
> The main thing I would need is to be able to pass a string of
> information to the gadget (e.g. the moves for that game)
> Currently most of the javascript chess viewers I have seen create html/
> javascript which already has the moves embedded in the script.
>
> Does anyone know if it's easy to create a gadget based on existing
> html/script
> and also
> Is it easy to embed that gadget on a google sites webpage and pass it
> a string of characters?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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