I have a simple table with the first row as a 'header' with column descriptions, and the rest of the rows are data values. I want to lock the header, so that when the user scrolls the ie window (since the data-values can be 100's of records), the column names stay.
I've tried an iframe--putting the header row in a separate table of it's own, then creating an iframe with a new table that contains the data rows. I have a form that the table is contained inside, which may be a problem. When I have the below (pseudocode)
...I get a blank spot where the iframe is (I have the width & height set correctly, etc.). The form is needed (or maybe it's not--let me know...) because in javascript I need to reference the table cells value, and the only way I know how is to reference the input element via it's containing form:
...if I could reference directly the table cell or the input element's name, I wouldn't need the form--so that's why the form exists.
Is putting the form in an iframe like this condidered 'tag soup' and is this the possible problem?
Thanks for any insight,
--J
I've tried an iframe--putting the header row in a separate table of it's own, then creating an iframe with a new table that contains the data rows. I have a form that the table is contained inside, which may be a problem. When I have the below (pseudocode)
Code:
<table><tr>header labels</tr></table>
<iframe blah, blah>
<form the table's form >
<table>
<tr><td><input type=text value = Row1--some data></td></tr>
<tr><td><input type=text value = Row2--some data></td></tr>
<tr><td><input type=text value = Row3--some data></td></tr>
</table>
</form>
</iframe>
...I get a blank spot where the iframe is (I have the width & height set correctly, etc.). The form is needed (or maybe it's not--let me know...) because in javascript I need to reference the table cells value, and the only way I know how is to reference the input element via it's containing form:
Code:
forms.myform.txtbox.value
Is putting the form in an iframe like this condidered 'tag soup' and is this the possible problem?
Thanks for any insight,
--J