Created
December 8, 2009 04:21
-
-
Save technohippy/251397 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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