View Full Version : Code for a fundraising thermometer
jelly46
10-02-2012, 11:55 AM
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.
bernie1227
10-02-2012, 12:10 PM
We need more information than that, what is the temperature of the thermometer based off? Time? An inputed value?
jelly46
10-02-2012, 01:22 PM
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.
jscheuer1
10-02-2012, 03:52 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.