How i can use Google Finance APIs in joomla (php)

297 views
Skip to first unread message

RAJEEV NATH VERMA

unread,
Feb 16, 2011, 2:05:09 AM2/16/11
to Google Finance APIs and Tools
Hello,
I try to this script code ---- <script type="text/javascript">
var quote = new google.finance.Quote();
quote.getQuotes(["GOOG","INTC"]);
quote.addListener(function(data) {
alert("Last: " + data[google.finance.LAST]);
alert("Symbol: " + data[google.finance.SYMBOL]);
alert("Change: " + data[google.finance.CHANGE]);
alert("Change Pct: " + data[google.finance.CHANGE_PCT]);
alert("Open: " + data[google.finance.OPEN]);
alert("High: " + data[google.finance.HIGH]);
alert("Low: " + data[google.finance.LOW]);
alert("Exchange: " + data[google.finance.EXCHANGE]);
alert("Time: " + data[google.finance.LAST_TRADE_TIME]);
});

</script>------- In my php/html file, but didn't happened .I
think there are no src code in script tag .
I want to use this script please help me.

Thanks
Rajeev

Reply all
Reply to author
Forward
0 new messages