DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Scrolling Stats

Hybrid View

  1. #1
    Join Date
    Nov 2008

    Scrolling Stats

    My company would like to render usage of our product much in our lobby. They would like it rendered much like Google does with their live query in their lobby.

    Here is an example if you have never seen it:


    My first thought is that Ajax would be the right approach for this. I used the following tutorial to guide me in the right direction:

    I changed the content a little to suit my needs. I am basically using php to query mySQL for the last twenty rows in a table. The scrolling seems to work alright, but I cannot seem to get the same effect. Mainly it is the paused shift to add new content is what I am having trouble with.

    Any advice would be helpful.

    Thank you.
    Last edited by Hack; 11-17-2008 at 08:14 AM.

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Welcome to DevX

    Specifically what effect are you going for?

  3. #3
    Join Date
    Nov 2008
    Thank you for replying. The effect that I am going for is the slight pause as a new line is inserted at the bottom as is done in Google's live query page that they use. My page has the appearance of scrolling because the updater request is just refreshing the page and the results of the new query populating the page giving the illusion of the previous results scrolling up the page. I thought that this might be achieved using the insertion class, but the effect was not much different. I thought about using something like tail and outputting the results, but I was hoping for something a little more elegant.

Similar Threads

  1. cbo and stats collection
    By elmasduro in forum Database
    Replies: 0
    Last Post: 07-26-2006, 09:52 AM
  2. scrolling status bar message
    By megafishgac in forum Java
    Replies: 2
    Last Post: 06-26-2005, 08:49 PM
  3. Replies: 0
    Last Post: 04-22-2002, 09:07 PM
  4. Need Help With Scrolling
    By Rob Halloway in forum VB Classic
    Replies: 1
    Last Post: 10-27-2000, 10:48 PM
  5. Replies: 0
    Last Post: 03-24-2000, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center