might be a bug... dont know... (tabindex couse problems...)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dekel
Advanced
Advanced
Posts: 11
Joined: Sat Dec 27, 2003 8:43 pm

might be a bug... dont know... (tabindex couse problems...)

Post by dekel »

i have the menu inside a table (like the example) and also i have a form in that page.
i want that when someone click `tab` on his keyboard the pointer will move to the next input i want, so i added `tabindex=num`:

Code: Select all

<input name=name size=15 tabindex=1>
<input name=name size=15 tabindex=2>
the problem is that i dont go to the next input as in the 'tabindex', i go to the menu... :(
i dont have an example on the net atm, maby i'll have one later...
do you know anything about it ?

p.s.
without the tabindex everything goes great :) but... what if i must use it ?

thanks, Dekel
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Do you have another tabindex 1 or 2 on the same page that is confusing it?

Tabindex works fine for me out of a table, although I did have another tabindex confusing it at one point, so I changed the numbers to avoid the confusion.

Regards,
maz
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Didn't you ask about that before? Did you try actually putting the menu in that table cell, your main menu, and take it out of the menu_data file. When I tried to fix the problem that solved it.

Ruth
dekel
Advanced
Advanced
Posts: 11
Joined: Sat Dec 27, 2003 8:43 pm

Post by dekel »

yes... it's exactly what i did...
but still... the tabindex doesn't work :(
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I had tabindex going to html link instead of tabindex=2 so I gave the html link a higher tabindex number and it worked.

Regards,
maz
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Just to make sure, the code will be like this in your cell

Code: Select all

<TD align=right vAlign=top height="25px" 
                  width=650>&nbsp;&nbsp;<script type="text/javascript">
                  with(milonic=new menuname("Main Menu")){
openstyle="rtl";
style=menuStyletop;
alwaysvisible=1;
itemheight=23;
orientation="horizontal";
position="relative";
aI("url=index.php;text=òì äîùøã;");
aI("text=ôøåéé÷èéí;showmenu=0;");
aI("url=members.php;text=ëðéñú ì÷åçåú;");
aI("url=address.php;text=ëúåáú;");
aI("url=contact.php;text=öåø ÷ùø;");
aI("url=index.php?eng;text=English;");
}drawMenus();
</script>
                </TD>
This part would be removed from the menu_data file so it doesn't appear twice on the page, and the

Code: Select all

 <SCRIPT language=JavaScript src="menu_data.htm" 
                  type=text/javascript></SCRIPT>
will be put back with the other files in the head.

Looking at your file that's up one thing I noticed is that you seem to have two tabindex=8 you have that for the text area and also for the button [but I know nothing about forms, never having used them] I used that page from the old link and put the coding as I showed it here and the tab index does work, until you get to tabindex=4, for some reason at that point it takes two hits on tab to get it from 3 to 4, two from 4 to 5 and 3 from 5 to 8. I'm unable to see where it's actually going. If you could put up the new files it would probably help someone who knows more about forms to help you.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Yes, a URL would help.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Here's the old one Maz which might give you a head start for the new one, you are the forms person. I know nothing, as shultz would say!
:lol:

http://www.parnas.co.il/contact.php

Ruth
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

innkeeper9 wrote:..I know nothing, as shultz would say!...
Oh my, now you're dating yourself! I guess I am too, since I know what you're talking about!

Kevin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Not only dating myself, but can't spell either! :lol:

Ruth
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I tabbed through the form without any problem, must have fixed it.

maz
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

That's interesting. I've got IE5.01 and not only does it not tab...well it does but I have to hit it twice to get to each next line but the menu disappears as soon as I mouseover the one that shows a submenu.

Ruth
Post Reply