473,387 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Is this an IE 6 bug - frames tablndex problems and the address bar

jm
I have searched everywhere and was only able to find many that have
had the same problem.

I have a frameset.

In the top frame, I have a tabindex. When the framset loads, I have
some Javascript that sets focus() and select() to the first element in
the top frame.

Based upon the tabindex in this frame, when I hit tab it should
immediately go to, of course, tabindex=2 (which is in the same frame).

However, it instead first goes to the address bar and then back to the
frame and then to the control designated with tablndex=1.

Obviously, the script is executing:

<script language="javascript">
parent.frames(0).focus(); //added this, doesn't help.
parent.frames(0).document.all("txtTo").focus();
parent.frames(0).document.all("txtTo").select();
</script>

which brings the focus and select to the appropriate control.
However, and here is the "bug" part of it, IE does not really give the
focus to the frame itself. Even though the control is selected, doing
a view source, will quickly show that the framset is still the
selected object and not the frame(0), as needed. The code above was
used in the frameset master and tried the frame itself, both with the
same results - first tab goes up to the address, then to any other
bar, then to tabindex=1, etc. It is because the frame never gets the
initial focus, just the control.

Any ideas how to fix this? Thanks.
Nov 18 '05 #1
1 1208
you should not run this script until the frameset load event fires, which
means its sub franes are loaded

<frameset onload="doLoad(this0)";>


"jm" <jo*************@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
I have searched everywhere and was only able to find many that have
had the same problem.

I have a frameset.

In the top frame, I have a tabindex. When the framset loads, I have
some Javascript that sets focus() and select() to the first element in
the top frame.

Based upon the tabindex in this frame, when I hit tab it should
immediately go to, of course, tabindex=2 (which is in the same frame).

However, it instead first goes to the address bar and then back to the
frame and then to the control designated with tablndex=1.

Obviously, the script is executing:

<script language="javascript">
parent.frames(0).focus(); //added this, doesn't help.
parent.frames(0).document.all("txtTo").focus();
parent.frames(0).document.all("txtTo").select();
</script>

which brings the focus and select to the appropriate control.
However, and here is the "bug" part of it, IE does not really give the
focus to the frame itself. Even though the control is selected, doing
a view source, will quickly show that the framset is still the
selected object and not the frame(0), as needed. The code above was
used in the frameset master and tried the frame itself, both with the
same results - first tab goes up to the address, then to any other
bar, then to tabindex=1, etc. It is because the frame never gets the
initial focus, just the control.

Any ideas how to fix this? Thanks.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
12
by: tomasio | last post by:
Dear Group, I managed to simulate framelike behaviour in mozilla-based browsers by now, but it doesn't work out with Internet Explorer 6. Could someone glance through the code on the...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
95
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm?...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
21
by: bird | last post by:
I want to write a multi-frame web page. At level one, it has two frames, saying LEFT and RIGHT. At level two, I split the RIGHT frame into two again, saying UPPER_RIGHT and LOWER_RIGHT. The LEFT...
1
by: ashkaan57 | last post by:
Hi, I have a design question: My home page checks if a user is logged in. If not already logged in, it displays a login form; if already logged in, it displays a table with some links. When the...
3
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.