Hi I'm trying to develop a simple gadget but I can't register a on
load handler.

This is the code of my gadget:

<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="hello world example" />
<Content type="html"><![CDATA[
Hello, world!
<script>
function say(){
alert("hi");
}
gadgets.util.registerOnLoadHandler(say);</script>
]]></Content>
</Module>

This should translate into a javascript alert, but nothing happens.

Any idea why? Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to