Results 1 to 2 of 2

Thread: Displaying Live Data on Website!

  1. #1
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Displaying Live Data on Website!

    I have a charting/analysis program for trading stocks and Futures. It runs on real-time data. One of its windows displays my simulated account information (Current Equity, Profit and Loss...etc.). One of the account info figures is the Account Equity which is constantly updating in real time, with every price tick.

    I would like to have just this single figure (Account Equity) displayed on my website - constantly updating in real time - the same way it does in the program.

    What would be the best way to accomplish that? Would something similar to the DHTML script that's used to display Local Time on a website work?
    Or, is JavaScript needed?

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

    Default

    DHTML is Javascript and a few other things. It stands for Dynamic HTML and most of the time it will be Javascript. (Most other languages only work in one browser, such as several created for Internet Explorer).

    The Local Time script is something that can be done in just Javascript: it gets a value to start (from the user's computer) then adds one every second (or perhaps it gets this value from the user's computer).
    But in the case of data that is on the server, this is not available to Javascript (which is operating on the user's computer). So you will need to use a method called "Ajax", which basically does a hidden request to the server to refresh the page without actually reloading it-- in this case grabbing your new stats and placing them onto the current page.

    There are a few scripts in the DD library that use Ajax, and there is a lot of information available by search if you can't find what you like.
    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. The Following User Says Thank You to djr33 For This Useful Post:

    Freakendorf (07-03-2010)

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
  •