i am trying to format a date as well but in the following format... yyyy-mm-dd. I would like the month and day to have a leading zero if less than 10. I tried the given solution but it doesn't work for me. Can anyone help out with a different solution? Thanks.
How do I increase the variable each time I write a 'td'?
BTW - Thanks onpnt. Your suggestion worked wonderfully. I get the number of cells. I can also get the number of rows and then caluclate the number of columns.
I am not sure yet if I will use onpnt's suggestion or 2ni's suggestion...
How do I retrieve the number of columns in a table? The table is loaded dynamicaly so the number of columns will vary depending on what was selected on a previous page.
How can I find out the number of columns in my table? The information is loaded dynamically. The number of columns will vary depending on what information was selected from a previous page.
Any help would be greatly appreciated.
I am trying to increment a counter by one everytime my interator loops through table data.
<TABLE border=1>
<TR onclick="highlightTR '#c9cc99','cc3333',this);">
<pr:fieldIterator>
<TD><pr:field /></TD>...
In script I am trying to do this, name = info.children[?].children['tName'].value . How can I determine what ? is supposed to be? It will be a different number depending on the table row selected from a previous screen.
My table looks like this.
<TABLE id="mytable" border=1>...
I would like to increment the table row id by 1 each time I loop through my iterator to create my table. How do I do this?
Here is my table.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>
<TH>Description</TH>
</b>
</TR>
<p font-size=10>...
I would like to increment the table row id by 1 each time I loop through my iterator to create my table. How do I do this?
Here is my table.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>
<TH>Description</TH>
</b>
</TR>
<p font-size=10>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.