Remotely Hosted Widgets
From MemberWiki
The proposal is to use the style implemented by the Shindig project:
To use the Gadgets JavaScript API in a type="url" gadget, you must follow these guidelines:
- The gadget href must reference a server-side script, such as a PHP, Python, Java, or CGI script.
- To access the libraries, you need to parse the gadget URL to extract the library parameters and construct <script src=...</script> statements for them. The <script src=...</script> statements are included in the emitted gadget HTML. For example, this URL parameter:
For a more complete description see: [1]
URL: http://...&libs=2dhyBXfcpQ8/lib/libcore.js...
is extracted from the URL and used to construct the following statement, which gets added to the emitted HTML. This statement says "load the Google Gadgets core JavaScript library:"
<script src='http://www.google.com/ig/f/2dhyBXfcpQ8/lib/libcore.js'></script>
