Robtech Posted May 2, 2001 Posted May 2, 2001 Good Day All This question may show up in other places in the form. I was wandering if anybody has had any success in creating a multi columned HTML table with different records in each cell. Here is what I am shooting for: ______________________________________________ |Record 1 | Record 2 | Record 3 | |___________|_____________|____________________| |Record 4 | Record 5 | Record 6 | |___________|_____________|____________________| If anyone has any ideas please let me know Thanx Rob
Anatoli Posted May 3, 2001 Posted May 3, 2001 That was discussed every week, the best is to do it through JavaScript
elvis_impersonating_penguin Posted May 3, 2001 Posted May 3, 2001 here is some basic code, that should do it.. put this part in the head of your document. (between the <head> and </head> tags) code: <script language="javascript"> <!--- var count = 0 var howmany = 3 //change the 3 above to the number of columns you will want ---> </script> then your records should be coded like this. code: <table> <tr> [FMP-Record] <td> <!--- put the fields you want, between this <td> and </td> tag---> [FMP-field: whatever] [FMP-field: anotherfield] </td> <script language="javascript"> count = count + 1 if (count == howmany) {count = 0; document.write("</tr><tr>");} </script> [/FMP-Record] </tr> </table> i didnt test this. but it should work. This will only work in javascript enable browsers... but since it is very simple javascript, it should work in any browser above version 2.0.
Recommended Posts
This topic is 8596 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now