Skip to content

Instantly share code, notes, and snippets.

@technohippy
Created December 8, 2009 04:21
Show Gist options
  • Save technohippy/251397 to your computer and use it in GitHub Desktop.
Save technohippy/251397 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="My Second Gadget" height="50" />
<Content>
<![CDATA[
<script>
function showValue() {
gadgets.io.makeRequest('http://www.google.com', function(req) {
var msg = '';
for (var k in req) {
if (req[k]) {
msg += k + ':' + req[k].toString().substring(0, 50) + "¥n";
}
else {
msg += k + ":null¥n";
}
}
alert(msg);
});
}
</script>
<button onclick="javascript:showValue();">Show value</button>
]]>
</Content>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment