Page 1 of 1

my knock off spudgun calculator

Posted: Mon Jan 09, 2006 8:57 pm
by saladtossser
never noticed this new section b4
i reversed the function of fuel tool
in fuel tool, u input propane pressure and you get the length of pipe you need
in my version, u input the meter pipes dia and length, and the calculator will tell you what pressure you need a regulator to be set at

where can i upload a xls file?

i am trying to make a javascript version of this, but failed 3 times...
http://littlecrazyprojects.tripod.com/guncalculator.htm <---dont work
http://littlecrazyprojects.tripod.com/g ... lator2.htm <---dont work
and
another:

<html>
<form name="cal">
<input type="text" name="chamber_dia" size="10" value="0" onchange="javascript(document.cal.chamber_dia.value / 2 * document.cal.chamber_dia.value / 2 * 3.14159 * document.cal.chamber_length.value = document.cal.chamber_volume.value)">
<br>
<input type="text" name="chamber_length" size="10" value="0" onchange="javascript(document.cal.chamber_dia.value / 2 * document.cal.chamber_dia.value / 2 * 3.14159 * document.cal.chamber_length.value = document.cal.chamber_volume.value)">
<br>
<input type="text" name="chamber_volume" size="10" readonly>
<br>
<input type="text" name="barrel_dia" size="10" value="0" onchange="javascript(document.cal.barrel_dia.value / 2 * document.cal.barrel_dia.value / 2 * 3.14159 * document.cal.barrel_length.value = document.cal.barrel_volume.value)"> <br>
<input type="text" name="barrel_length" size="10" value="0" onchange="javascript(document.cal.barrel_dia.value / 2 * document.cal.barrel_dia.value / 2 * 3.14159 * document.cal.barrel_length.value = document.cal.barrel_volume.value)">
<br>
<input type="text" name="barrel_volume" size="10" readonly>
<br>
<input type="button" name="cb_ratio_cal" value="Calculate Your Chamber to Barrel Ratio" onclick="javascript (document.cal.chamber_volume.value / document.cal.barrel_volume.value = document.cal.cb_ratio.value)">
<br>
<input type="text" name="cb_ratio" size="10" readonly>
<br>
<input type="text" name="meter_dia" size="10" value="0" onchange="javascript(document.cal.meter_dia.value / 2 * document.cal.meter_dia.value / 2 * 3.14159 * document.cal.meter_length.value = document.cal.meter_volume.value)"> <br>
<input type="text" name="meter_length" size="10" value="0" onchange="javascript(document.cal.meter_dia.value / 2 * document.cal.meter_dia.value / 2 * 3.14159 * document.cal.meter_length.value = document.cal.meter_volume.value)">
<br>
<input type="text" name="meter_volume" size="10" readonly>
<br>
<input type="text" name="best_mix" value="4.03%" readonly>
<br>
<input type="button" name="best_pressure_cal" value="Calculate Your Recommended Propane Volume in Chamber" onclick="javascript(document.cal.chamber_volume.value * 0.0403 = document.cal.best_propane_volume.value)">
<br>
<input type="text" size="10" name="best_propane_volume" readonly>
<br>
<input type="button" name="best_pressure_cal" value="Calculate Your Recommended Propane Volume in Chamber" onclick="javascript(document.cal.best_propane_volume.value * 14.6 = document.cal.best_propane_pressure.value)">
<br>
<input type="text" size="10" name="best_propane_pressure" readonly>
</form> </html>

if any1 can help me fix that up, that will be great, i just made the script in onchange="" and onclick="" up.

edit, just uploaded a excel file:
http://littlecrazyprojects.tripod.com/guncal.htm
i want the form to do exactly as the spreadsheet

Posted: Mon Jan 09, 2006 11:39 pm
by CS
"my knock off spudgun calculator"
LMAO! If I ever create a calc of any kind I will name it "My Throwback Spudgun Cauculator". Sorry that I cant help you but once you cross over into javascript thats were its super confusing! The only hard thing ive learned is a little of CSS. Sorry for being critical, but have you ever heard of a "capital letter"? JK

Posted: Tue Jan 10, 2006 4:30 pm
by saladtossser
http://littlecrazyprojects.tripod.com/guncal.htm
it worked
big thanks to the ppl at ExcelEverywhere, also pcguy and boogieman for indirectly suggesting me to use exceleverywhere.

edit: awesome, i got 3 hits that came from this particular post

Posted: Sat Feb 25, 2006 2:48 pm
by nicholai
hey i got the same idea going over here except im gonna code it in visual basic and i didnt rip off anyones code, well i did rip off the numbers used for the calculations, however i adjusted the inside diameter sizes of certain pipe fittings like brass and obviously pvc cause i got different ones from the calipers. its kinda a little side project of mine and its real dirty looking so far but i will post it and revise constantly when i find the appropriate "artwork" to display such a tool