Results 1 to 3 of 3

Thread: tabbing through controls

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2003
    Location
    Gent
    Posts
    166

    tabbing through controls

    i've given al my controls an ascending tabindex.

    i gave the tabindex-property of the controls i do not want to tab through the value "-1"

    this works, but at a certain tab-press the cursor jumps to my adress-bar (internet explorer), can i disable this too?

    greetz,
    never argue with an idiot, he will bring you down to his level and will beat you through experience

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    I don't think its possible, but if you find an answer, let me know...

    It should happen that way, because the browser receives the event before the document, so malicious javascript couldn't keep you from reaching the address bar.

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Just to follow up, its possible in IE4+ , but Netscape navigators and probably all other browsers won't allow you to caputre Tab keypresses.

    VB Code:
    1. 'put this in the Page_PreRender
    2. MyButton.Attributes.Add("onKeyDown","return checkForTab(this);")
    3.  
    4. If (myButton.Visible And Not Me.Page.IsClientScriptBlockRegistered("checkForTab")) Then
    5.         Me.Page.RegisterClientScriptBlock ("CESITabAutopostback", "<script>function checkForTab(obj) {if(event.keyCode == 9) return false;}</script>")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width