|
-
Table layout
I wrote a script were when someone submit 2 numbers in a form, it displays a table of results for 10 to 89. Here is part of the script:
var str = '<table>';
for(var C=10; C<=89; ++C) {
str += '<tr>';
str += '<td>' + C + '<\/td>';
str += '<td>' + eval(formula) + '<\/td>';
str += '<\/tr>';
}
str += '<\/table>';
The problem is that it displays a long table vertically, with 80 lines (parameter C in the script). I would like instead that it's displayed more horizontally, that means: the table is displayed vertically from C ranging from 10 to 25, with the result on the calculation (eval(formula)in the script) on the right like before. Then, on the right of these results, the same table but with C ranging from 26 to 41 (so it has the same vertical length) and same, on the right after C from 42 to 57, and then from 58 to 73, and then from 74 to 89 (no need to put 90).
I really don't know how to do that, can you help please?
Similar Threads
-
By Brian Pittman in forum Database
Replies: 2
Last Post: 04-29-2007, 08:23 AM
-
Replies: 0
Last Post: 04-04-2003, 05:25 PM
-
Replies: 0
Last Post: 04-04-2003, 05:13 PM
-
By Bob Hines in forum Database
Replies: 7
Last Post: 04-27-2000, 11:14 AM
-
By Bob Hines in forum Database
Replies: 2
Last Post: 04-13-2000, 01:53 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks