javascript - Problem with Stock Quote from Google Finance -


Below I found an example from Google Finance for a stock quote but it does not seem to work, the price of the stock is not displayed is.

Thanks

  & lt; Body & gt; Hello world! Here's your portfolio: & lt; Br / & gt; GOOG: & lt; Span id = _IG_SYM1_l & gt; & Lt; / Span & gt; (& Lt; span id = _IG_SYM1_c> & lt; / span & gt;) & lt; Br / & gt; AAPL: & lt; Span id = _IG_SYM2_l & gt; & Lt; / Span & gt; (& Lt; span id = _IG_SYM2_c & gt; & lt; / span & gt;) & lt; Br / & gt; INTC: & lt; Span id = _IG_SYM3_l & gt; & Lt; / Span & gt; (& Lt; span id = _IG_SYM3_c & gt; & lt; / span & gt;) & lt; Br / & gt; & Lt; Script type = "text / javascript" & gt; Var quote = new google.finance.Quote (); Quote.enableDomUpdates ({'GOOG': '_IG_SYM1', 'AAPL': '_IG_SYM2', 'INTC': '_IG_SYM3'}); Quote.getQuotes (["GOOG", "AAPL", "INTC"]); & Lt; / Script & gt; & Lt ;! - Start: JavaScript - & gt; & Lt ;! - Javascript - & gt; & Lt; / Body & gt;  

It looks like you're using an example. If I think right, that API is only available for gadgets. It says,

"Gadgets using the Market Data API can only run in iGoogle - either production iGoogle or iGoogle sandbox."

Only allows you to get data related to a user's portfolio.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -