Hello,
I've created a gadget that uses the Google Finance API and it seems
like there is a problem using it on V1.
I used the same code on V2 profile and canvas and V1. On iGoogle V2 in
works great, but on iGoogle V1 I get an error saying: "google is not
defined".
Does anyone know if maybe v1 is not supported anymore, or know the
cause of this problem?
Thanks.
Here is the code I tested:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Test finance V1" >
<Require feature="finance"/>
</ModulePrefs>
<Content type="html">
<![CDATA[
<script type="text/javascript">
function init() {
alert (google.finance);
alert (google.finance.Quote);
var quote = new google.finance.Quote();
}
_IG_RegisterOnloadHandler(init);
</script>
]]>
</Content>
<Content type="html" view="home">
<![CDATA[
<script type="text/javascript">
function init() {
alert (google.finance);
alert (google.finance.Quote);
var quote = new google.finance.Quote();
}
_IG_RegisterOnloadHandler(init);
</script>
]]>
</Content>
<Content type="html" view="canvas">
<![CDATA[
<script type="text/javascript">
function init() {
alert (google.finance);
alert (google.finance.Quote);
var quote = new google.finance.Quote();
}
_IG_RegisterOnloadHandler(init);
</script>
]]>
</Content>
</Module>
--
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.