May 2, 200124 yr 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
May 3, 200124 yr 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.
Create an account or sign in to comment