Results 1 to 4 of 4

Thread: Code for a fundraising thermometer

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

    Default Code for a fundraising thermometer

    Can anyone help

    I am looking for code for a fundraising thermometer.

    I have looked and looked and looked.

    I need it to be html and js

    Can point me in the right direction.

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    We need more information than that, what is the temperature of the thermometer based off? Time? An inputed value?
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  3. #3
    Join Date
    Jun 2010
    Posts
    45
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by bernie1227 View Post
    We need more information than that, what is the temperature of the thermometer based off? Time? An inputed value?
    Hello

    I've been looking for code that will show how much the organisation has raised.

    I need to be js and html lead but no an embed one.

    I've seen quite a few but nothing that fits what i need.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Javascript cannot know how much the organization has raised. It needs to get that from a database or text file, somewhere it's been stored.

    If it's a database, you need some server side code, and in fact could do all the math work server side. With a text file you could retrieve the information with AJAX, which is technically javascript and do the math in javascript. But someone or something would have to update that text file to keep it current. If it's a person, fine. If not, again server side code would be required.

    Put another way - No javascript is needed, server side code could do all the data retrieval and math. But if it is a text file that holds the information and that's updated by a person, no server side would be required. Then it could all the retrieval and math could be done via javascript.

    Of course HTML would be involved, to render the thermometer. I imagine you've found one of those that you like, if so, you could use that.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Replies: 3
    Last Post: 05-12-2011, 03:43 AM
  2. Secret code / hidden message / obfuscated code - ???
    By newbie01.others in forum JavaScript
    Replies: 2
    Last Post: 01-14-2011, 11:29 AM
  3. Replies: 15
    Last Post: 06-11-2009, 12:27 PM
  4. Replies: 2
    Last Post: 10-27-2008, 05:16 AM
  5. Help - Code discrepency - Full Screen code
    By kurson in forum Dynamic Drive scripts help
    Replies: 17
    Last Post: 05-23-2006, 05:21 AM

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
  •