473,486 Members | 2,401 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

using array of arrays to generate HTML table

3 New Member
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
5 1731
AricC
1,892 Recognized Expert Top Contributor
I'm confused you want to have tables with those values?
Nov 27 '06 #2
jt2006
3 New Member
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
AricC
1,892 Recognized Expert Top Contributor
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
jt2006
3 New Member
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
r035198x
13,262 MVP
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

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

Similar topics

0
1287
by: Nik Coughin | last post by:
Hi, I have an HTML help system that I am generating using the PHP CLI. Essentially it is a single PHP file that has a few arrays at the top of the file, before it starts spitting out HTML, like...
8
2368
by: dbaplusplus | last post by:
I worked on web development using java script many many years, so I am now a newbie to javascript. I have a single html page, which is generated dynamically using some programming language. Web...
16
3458
by: Ian Davies | last post by:
Hello Needing help with a suitable solution. I have extracted records into a table under three columns 'category', 'comment' and share (the category column also holds the index no of the record...
3
2764
by: jshelp | last post by:
I have a problem I would be very grateful for any help with: I need to create a bus timetable using data from arrays and write a table using the DOM to show only those stops and times selected. ...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.