View Full Version : google finance html
queerfm
03-19-2008, 06:21 PM
Hi i have tryed everything and read for over 1 hour on this http://code.google.com/apis/gadgets/docs/finance.html however i have no idea on how to make it work with my html website.
If any one knows how to get it to work would you please post the html or php code.
Thanks
djr33
03-19-2008, 06:43 PM
You know the standard procedure for posting-- post a link to your site with the problematic page, etc.
And here's your html code:
http://code.google.com/apis/gadgets/docs/finance.html#hello_world_example
If that doesn't help, which I'm guessing as you read the page it doesn't, you'll need to, y'know, post more info.
queerfm
03-20-2008, 02:57 AM
Thanks i used that code
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 type="text/javascript">
var quote = new google.finance.Quote();
quote.enableDomUpdates( { 'GOOG' : '_IG_SYM1', 'AAPL' : '_IG_SYM2',
'INTC' : '_IG_SYM3' } );
quote.getQuotes(["GOOG", "AAPL", "INTC"]);
</script>
However it does not work, it come up with
Hello world! Here is your portfolio:
GOOG:()
AAPL: ()
INTC: ()
when it should look something like this
Hello world! Here is your portfolio:
GOOG: 631.58 (+15.58)
AAPL: 171.46 (+1.88)
INTC: 26.65 (+1.17)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.