Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using tabindex with textarea & script

Status
Not open for further replies.

ribsy0

Programmer
Sep 7, 2005
4
US
Hi,
I use tabindex in the following code segment but it's ignored. Is there a way to get it to work?
Thanks.

<tr>
<td colspan=2>
<div style='position:relative;top=0px;left=0px;height:250' width=100%>
<textarea name="Body" tabindex="105" style='visibility:hidden;position:absolute;top:0px;left:0px'></textarea>
<script type="text/javascript">
var idGenerator = new RTEIDGenerator(0);
var editor = new RTEEditor(idGenerator);
editor.SetStationery(false);
editor.Instantiate();
editor.SetHTML(<%= "\"" + editorValue + "\"" %>);
</script>
</div>
<input type=hidden name=Format id=Format value="html">
</td>
</tr>
 
What doesn't work? Isn't textarea 105th element in your tabbing order?
 
when tabbing, this field is bypassed. This is what I need to fix.
 
Do you have an URL to this page? Are you experiencing this in all the browsers or just one? Is it completely bypassed, meaning that your tabbing restarts from the top, or is it just really late? Why did you put the tabbing order to 105? Do you really have 104 elements you want to tab through before?
 
Are you experiencing this in all the browsers or just one? Is it completely bypassed, meaning that your tabbing restarts from the top, or is it just really late? Why did you put the tabbing order to 105? Do you really have 104 elements you want to tab through before?

This is only used in IE 5.5. the element is bypassed during the tabbing then when the tab goes back to the address bar and start tabbing again, it goes to this field (just like if it had no tabindex). there aren't 104 elements before this one because the tabindex isn't consecutive but the tabbing is correct until this element.
 
Nothing to do with your problem, but you've (erroneously) used HTML attribute-style syntax for your CSS in one line:

Code:
style='top=0px;left=0px;

while further on the same line, and on the next line, you use the correct syntax:

Code:
height:250' width=100%>
   <textarea name="Body" tabindex="105" style='visibility:hidden;position:absolute;top:0px;left:0px'></textarea>

You should fix that as well.

Hope this helps,
Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
You're using some kind of Rich Text Editor aren't you? So the <textarea> is [tt]visibility:hidden;[/tt] and used by the script which follows it to hold the results of the edit. I suspect that the editor script creates its own editing control (which won't be a regular textarea anyway), so you're applying the taborder to the wrong element. You'll need to look at the script's documentation to see whether this can be resolved, and how to do so.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Yes, this uses a Rich Text Editor. Unfortunately (for me), there is no documentation for the script. I'm not sure what I should look for in order to research this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top