Hi,
I try to writing a finance gadget.... so I try to run this code in the
editor gadget and it doesn't work.... and I don't know why.....
The result of te running is a page with:
GOOG
AAPL
INTC
without the values.....
can you help me???
This is the code (example from
http://code.google.com/intl/it-IT/apis/finance/docs/finance-gadgets.html):
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="hellofinance">
<Require feature="finance"/>
</ModulePrefs>
<Content type="html">
<![CDATA[
Hello world!
Here is your portfolio:<br/>
GOOG: <span id=_IG_SYM1_l></span> (<span id=_IG_SYM1_c></span>)<br/>
AAPL: <span id=_IG_SYM2_l></span> (<span id=_IG_SYM2_c></span>)<br/>
INTC: <span id=_IG_SYM3_l></span> (<span id=_IG_SYM3_c></span>)<br/>
<script>
var quote = new google.finance.Quote();
quote.enableDomUpdates( { 'GOOG' : '_IG_SYM1', 'AAPL' : '_IG_SYM2',
'INTC' : '_IG_SYM3' } );
quote.getQuotes(["GOOG", "AAPL", "INTC"]);
</script>
]]>
</Content>
</Module>