View Full Version : how to make this?
extreme-mobile
05-30-2007, 05:15 PM
hey everyone,
Im look for information of how I can create a calculator that works out what size fire you woul need to purchase in order to heat a sized room.
I would like the calculator to be able to be integrated into my website if possible.
the way it gets worked out is like this
http://www.charnwood.com/stove-selector.asp
thats exactly how i would like it, is it possible?
cheers
As for the calculations on the web page it's done with javascript, in fact if you view the code for the page you've linked to you can see that they've put the javascript code on the page rather than linking to an external .js file,
Actually I've just copied the entire page code into an empty HTML document and opened it with IE and Firefox and it worked in both browsers, I've no idea how accurate it is but It does work, must be your lucky day m8 :D
extreme-mobile
05-31-2007, 06:38 AM
so thats all i need to do to get it to work is create a file with the code in it and upload it? also how would i get it to work as they have done, for example when you do a calculation is advsies you what stove is suitable, i would like to do that for the stoves we sell
cheers for any advice
To have your own stoves named instead of the ones currently shown you would need to edit the javascript to replace the stove names with the names you need to show.
Look in the javascript named function outputcalc() and in the last block of code you'll see the stove names and the required kw output associated with that stove.
vBulletin® v3.7.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.