Loading...

RE: Web Part to display a list across columns

RE: Web Part to display a list across columns

Home Forums QuickApps Forum Web Part to display a list across columns RE: Web Part to display a list across columns

#7488
Anonymous
Anonymous
Participant

Hi,

n

I don’t think the ‘AddRowToTable’ function in your script is correct, the structure of the table should be as below:

n

<table>

n

<tr>

n

<td>…</td>

n

<td>…</td>

n

<td>…</td>

n

</tr>

n

</table>

n

But the ‘$("#tabk").append("<td><a href=" + url + ">" + title + "</a></td>");’ will generate the structure below, the td is not embedded under the <tr/>:

n

<table>

n

<td>…</td>

n

</table>

n

You should create a <tr/> object first, and then add all the td elements into this object, finally, append the tr object into the table object.

n