www.webdeveloper.com
Results 1 to 2 of 2

Thread: Javascript - database counter

  1. #1
    Join Date
    Oct 2007
    Posts
    126

    Javascript - database counter

    Hi Im looking to develop a graphical counter using javascript. There are loads of jquery counters and the like out there but what I'm after is something that looks like a counter but rather than just add up or down it actually retrieves the numbers from the database. The database field will be continually updated by a different method so no problem there. I just need to pull the new data at a set interval without a page refresh. Oh and I'll be using images (unless I can find a digital clock style webfont) to display the numbers. Does anyone know of a tutorial or any help on this matter? I've looked all over and drawn a blank

    Thanks

    Chris

  2. #2
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    The only thing I can think of is to use AJaX to access a server-side page that grabs the data from the database and returns it; it will run behind the scenes and can dynamically update the webpage without a refresh/reload.

    And go ahead and use the images for the digital-style numbers; even if you did find a font that fits, there's no guarantee that all browsers would have it. In this case, the images would be universal, and should display quickly if you pre-load them at page load. Make sure they are .gifs, and are optimized for the page.
    Last edited by WolfShade; 02-02-2012 at 06:38 PM.
    |||||
    o . Q
    ___ "You live and you learn; or you don't live long." - Lazarus Long

    ^_^

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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



Recent Articles