The Problem:**** Google Sites currently has a very annoying restriction -- it will not let you include iframe, script or embed tags in your pages! After attempting different ways to overcome it, including faking links to actually include scripts when the page is expecting an image, I finally found one way that works. As it turns out, the solution, ironically, is also a Google service. ;)
T****he Solution: Google Gadgets You can create your own gadget using the Google Gadgets Editor. Gadgets allow you can create a mini-web page complete with scripts, Flash animations, and everything needed to spice up your site. You can also load a page or animation residing on a different site, and you can even pass it parameters through the URL.
- To create a mini-page, use the <CDATA[ <your HTML code goes here> ]]--> tags.
- To load another page, you can either use an <iframe> tag, load page contents via scripts, or simply load a complete separate page or animation using the <Content type="url" src="http://yourSite.com?your=parameters">\ tags.
Once you are done, save and publish your gadget. Google will give you a permanent URL to the gadget's XML definition. On your web page, go to Insert ->More, select Add by URL, enter your gadget's address and vioala! You now have scripts, iframes and more on your Google Sites page!!!
For more hacks, be sure to visit the Blog or Projects sections at Gabriel Mongefranco's Home Page.
