Hello,
Well, I have a jsp file and the body line is:
Now, if the file, I build a table. THere are several possible cases:
- Tuples can be deleted
- Tuples can be modified
- Tuples can be added
- Tuples can only be viewed.
In case tuples can me modified or deleted, I put the focus on the first tuples.
In case tuples can only be added, I put the focus on the tuples to be added.
My problem is that if a table can only be viewed, there is no "id"... I have tried to put the id="L1" on a hidden field but it does not work.
When IE loads the page, I get a "page error".... which is normal since there is no label "L1" defined....
Is there a workaround for that?
THanks for your help
Well, I have a jsp file and the body line is:
Code:
<body onload="if (document.getElementById) document.getElementById('L1').focus();">
- Tuples can be deleted
- Tuples can be modified
- Tuples can be added
- Tuples can only be viewed.
In case tuples can me modified or deleted, I put the focus on the first tuples.
In case tuples can only be added, I put the focus on the tuples to be added.
Code:
<input type=text name=<%=name%> id="L1" tabindex=...>
My problem is that if a table can only be viewed, there is no "id"... I have tried to put the id="L1" on a hidden field but it does not work.
When IE loads the page, I get a "page error".... which is normal since there is no label "L1" defined....
Is there a workaround for that?
THanks for your help