During the workshop I briefly mentioned this illusive URL gadget. So, lets go ahead and give an example of one. All an URL gadget is, is some web content that already exists and is accessible through an URL. Ok, so what does that mean? This means, any website on the web could be made into a possible gadget. Here is all it takes… In the Content section tag make sure you have the type set to URL and then have an href attribute set to the site you want. This example won’t look pretty in the profile view, but hit the canvas button and you’ll see the whole site..
<?xml version=”1.0″ encoding=”UTF-8″?>
<Module> <ModulePrefs title="SciVerse Examples - Content API Call 1" title_url="http://developer.sciverse.com" author_email="firstname.lastname@example.org" description="Intro to Gadgets"> <Require feature="opensocial-0.9" /> <Require feature="sciverse" /> <Require feature="hub" /> <Require feature="dynamic-height"/> <Require feature="org.jquery.core-1.4.2" /> <Optional feature="content-rewrite"> <Param name="exclude-url">*</Param> </Optional> </ModulePrefs> <UserPref name="searchTerms" datatype="hidden" /> <Content type="url" view="profile,canvas" href="http://www.reddit.com/r/sydney"></Content> </Module>