This is probably result of the API thinking that the gadget editor is
not iGoogle. Try editing outside of the gadget editor?
On Feb 4, 10:02 am, fran <fran...@libero.it> wrote:
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
fromhttp://code.google.com/intl/it-IT/apis/finance/docs/finance-gadgets.h...
<?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>