Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Mohingan Dark
Swords of Valor VORTEX RISING
14
|
Posted - 2012.08.05 15:02:00 -
[1] - Quote
hey, im new to this stuff still (learning a little at a time) What i want to know is if its possible to have a list of ships and have a price calculated for them (based on a addition script with manually inputed mineral prices)
basically i want the ship name with the price next to it in its own box or maybe just a different color text? idk
EXAMPLE Tristan : 500,652 isk
here is my (farily pathetic) try to make it work -.- LINK |

Steve Ronuken
Fuzzwork Enterprises
542
|
Posted - 2012.08.05 16:23:00 -
[2] - Quote
It's doable.
You'll have to hardcode the mineral requirements though. With ME and production efficiency waste in them. (unless you code that up)
I know it's doable, as I'm doing it on my blueprint calculator (getting the details from the static data extract, and the prices from Eve-marketdata. Though that's using code on the server for some of the heavy lifting)
FuzzWork Enterprises http://www.fuzzwork.co.uk/ Blueprint calculator, invention chance calculator, isk/m3 Ore chart-á and other 'useful' utilities. |

Acid Kanshi
Red Federation RvB - RED Federation
8
|
Posted - 2012.08.05 17:56:00 -
[3] - Quote
I do it with javascript in my calculator.
http://www.eve-cost.eu/calculator/index/12003
Basically you must have the ship material requirements. Add ME to it and multiply each material price with the amount you get after ME and add all the material sums together. EVE-Cost is a manufacturing tool for EVE players. http://www.eve-cost.eu |

Mohingan Dark
Swords of Valor VORTEX RISING
14
|
Posted - 2012.08.05 18:11:00 -
[4] - Quote
ok, thanks for the fast responses
ive tried to make it work for one ship (tristan) but nothing shows up in the box even tho i have the script running onload.....do i need something other than "input type" or what am i missing?
thanks for the help (link to code is in the first post) |

Steve Ronuken
Fuzzwork Enterprises
542
|
Posted - 2012.08.05 18:51:00 -
[5] - Quote
it's because all you're doing in your code is setting a javascript variable.
What you need to do is find the object representing that field in the DOM, and set the value of that.
http://www.mkyong.com/javascript/how-to-get-element-by-name-in-html-getelementsbyname/
Normally I'd use ID rather than name (it's unique. names don't have to be)
then something like document.getElementById('h').value=h; FuzzWork Enterprises http://www.fuzzwork.co.uk/ Blueprint calculator, invention chance calculator, isk/m3 Ore chart-á and other 'useful' utilities. |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |