By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,521 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,521 IT Pros & Developers. It's quick & easy.

using array of arrays to generate HTML table

P: 3
Hi, can anyone help?

I'm new to javascript and need to use it to generate an HTML table including minutes added to times eg. 14.01 + 90 minutes...
I have the arrays:
var place = ["a", "b", "c", "d"]
var mins = [5,10,15,20]
var times = ["14:40","16.40","18.50","19.50"]

Can anyone help?

Thanks
Nov 27 '06 #1
Share this Question
Share on Google+
5 Replies


Expert 100+
P: 1,892
I'm confused you want to have tables with those values?
Nov 27 '06 #2

P: 3
Sorry I didnt explain it very well. I need to have the 'places' as the table header, then add the 'mins' to the 'times' for each place
Nov 28 '06 #3

Expert 100+
P: 1,892
So you want the header cells to be "A" "B" "C" "D" then have times on the left and places on the right?
Nov 28 '06 #4

P: 3
So you want the header cells to be "A" "B" "C" "D" then have times on the left and places on the right?
Sorry I'm not explaining it very well...

table should be something like:

A, time1, time2, time3
B, time1+x, time2+x, time3+x
C, time1+x+y, time2+x+y, time3+x+y

Thanks.
Nov 30 '06 #5

10K+
P: 13,264
Sorry I'm not explaining it very well...

table should be something like:

A, time1, time2, time3
B, time1+x, time2+x, time3+x
C, time1+x+y, time2+x+y, time3+x+y

Thanks.
is x the minutes? if so then what is y?
Or better still can you create the table using html only or at least its general structure then we can try to fit in your values?
Nov 30 '06 #6

Post your reply

Sign in to post your reply or Sign up for a free account.