Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8596 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.