Current location: Hot Scripts Forums » General Web Coding » JavaScript » skip input="File" when tabbing


skip input="File" when tabbing

Reply
  #1 (permalink)  
Old 12-23-04, 08:50 PM
dodod dodod is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
skip input="File" when tabbing

the code already includes an onChange="put()", to keep a visible text-input updated...


but the problem is: you can tab through the form and highlight the "hidden" File input eliminating the effect. standard solutions for standard text fields don't seem to apply (Firefox).





love,
dodod.
Reply With Quote
  #2 (permalink)  
Old 12-24-04, 09:56 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Firefox is pretty strict with the syntax, are you sure you've got it exactly right?
You should be able to use onBlur="put()" to call put as soon as focus leaves the input field. It's not easy to say more without looking at the page.
Reply With Quote
  #3 (permalink)  
Old 12-24-04, 03:19 PM
dodod dodod is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
here's an example of my situation:

Code:
<form>
<input name="field1" tabindex=1><br>
<input name="field2" type="file" onChange="put()" tabindex="-1"><br>
<input name="field3" tabindex=2><br>
<input type=submit tabindex=3>
</form>
field2 is hidden by a div... so the Browse button is all that should be operational. tabindex="-1" is the quick fix in ie- im just wondering if there's a javascript solution for mozilla, et cetera.

thanks,
dodod
Reply With Quote
  #4 (permalink)  
Old 12-26-04, 07:52 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
If you are hiding field2 using a div- why not set it to type="hidden"?

You could also do onFocus="document.getElementById('field3').focus() " if you want the focus box to skip that field.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skip the IFrame border on tabIndex?? jakeisbland HTML/XHTML/XML 3 06-08-04 01:25 PM
Automatically removing a comma when tabbing off a field AshleyQuick JavaScript 2 05-31-04 01:12 PM
checkbox checked = skip UPDATE (Mysql) eq1987 PHP 9 05-29-04 09:11 AM
skip auto_prepend_file in specific subdirectory Dr-Leech PHP 1 02-23-04 01:03 PM


All times are GMT -5. The time now is 10:37 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.