Results 1 to 3 of 3

Thread: google finance html

  1. #1
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default google finance html

    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
    The web in one word.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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/..._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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks i used that code
    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)
    The web in one word.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •