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>...
That sounds like a great idea but how do I name the table row with a number when I don't know how many rows there will be? I will need to increase the number for each time it iterates to create the table rows.
I am trying to set a variable from a value in a table that is loaded dynamically.
Here is my table setup.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>
<TH>Description</TH>
</b>
</TR>
<p font-size=10>
<pr:iterator results="tableList" >...
I am trying to select a row in a table, click a 'view' button then open a new page with detailed information of the row I clicked.
How do I pass the information from the first page to the 'view details' page?
The table is dynamically loaded.
I am using an IE browser.
Thanking you in advance...
I would like to know how to, after highlighting a row in a table, click the submit button from a different frame and know which row is selected so that I can open a new page with details of the row selected.
Here is my table.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>...
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.