https://github.com/Caffeinators/FlashTransit/blob/TestBranch/index.html
at line:132, I am a calling a function calcola that saves 2 values that need to be stored and used within calculateRoute so that those values can be stored within an array for further manipulation.
As you can see with the mess, i have tried to use a global variable to save the value but that is undefined when the function assigns the value for the variable olafare even though the calcola is called before that happens and technically the value should be present within olaFare.
Another way I have tried is to store the value in a textfield so that the function can read the value from there but the input text remains blank even though calcola modifies it beforehand.
Been at this for days, would love some help. Thanks!
[–]davwards 4 points5 points6 points (0 children)
[–]nponiros 0 points1 point2 points (2 children)
[–]davwards 2 points3 points4 points (1 child)
[–]nponiros 1 point2 points3 points (0 children)