To All
On my HTML page is some edit boxes with text in it which represents
durations in time in the following format: hh:mm:ss.
I have to work with these pre-entered values and have a total field named
TotTTimes which is added up from 3 fields called TotBTime, TotPTime,
TotUTime.
The value of these three fields (TotBTime, TotPTime, TotUTime) are
recalculated depending on selections made by the user.
When the user selects B (via a radio button) on the first line, the value
of one of the above mentioned 3 fields changes. i.e. on the first row U
was selected. Now he/she selects B. The value of the TimeOne edit box
(pre-entered and not editable) has to be subtracted from TotUTime and
added to TotBTime.
I have no problem with the actual calculation code. What is creating a
problem is the calculation reads the value of all the edit boxes as
strings. I can not use parseInt(TimeOne.value) or even parseFloat
(TimeOne.value).
What must I use or how can I convert the data in the textbox to time
format?
Your assistance will highly be appreciated.
Helga Y. Anagnostopoulos