Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile IE7 in Iframe, text box does not accepting keyboard focus

    IE7 does not seem to be accepting keyboard focus in the text boxes on iframe. Without iframe, text boxes are working fine. Cursor would typical be placed in a text box.

    Thanks for any assistance.

  • #2
    Regular Coder
    Join Date
    Sep 2006
    Location
    Skopje, Macedonia
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Can you be more precise and provide the code if possible?

  • #3
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Lallo,
    We have development project in ASP.Net with C#. After login, main page having header part with logos, left handside menu and remaining part iframe.
    Login page having login controls. After successful login, menu will display. Once click on menu item it will display the page on iframe.
    IE7 in Iframe, text box does not accepting keyboard focus.Same will working on IE 6.0.

  • #4
    Regular Coder
    Join Date
    Sep 2006
    Location
    Skopje, Macedonia
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by hemasekhar View Post
    Hi Lallo,
    We have development project in ASP.Net with C#. After login, main page having header part with logos, left handside menu and remaining part iframe.
    Login page having login controls. After successful login, menu will display. Once click on menu item it will display the page on iframe.
    IE7 in Iframe, text box does not accepting keyboard focus.Same will working on IE 6.0.
    Sorry for the late reply guys but i had some problems. Unfortunately the only one who can help you is Bill Gates on his own with making order to his people in Microsoft to take care of this problem with the IE7. Focus not working nor the Active is working...




    Sorry again!

  • #5
    Regular Coder
    Join Date
    Sep 2006
    Location
    Skopje, Macedonia
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Cool

    Just add this:

    Code:
    defaultfocus="(the focusing item)"
    in the
    Code:
    <form runat="server">
    tag.

    Example:
    Code:
    <form runat="server" defaultfocus="firstName">
    It works with IE7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! And with iframe too!!!!!!!

    C ya!


  • #6
    Regular Coder
    Join Date
    Sep 2006
    Location
    Skopje, Macedonia
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile

    About the keyboard focus - if you think of the accessible key this is the solution ( tested!!! ):
    Add this
    Code:
    AccessKey="m"
    to the ASP.NET item that you want to be accessible through the keyboard:
    Code:
    <asp:TextBox ID="message" Columns="40" Rows="4" runat="server" CssClass="textBox" TextMode="MultiLine" />
    Example:
    Code:
    <asp:TextBox ID="message" Columns="40" Rows="4" runat="server" CssClass="textBox" TextMode="MultiLine" AccessKey="m"/>
    Works in iframe too!!!

    It is accessible by pressing the Alt key plus the dedicated key (AccessKey).

    Regards!
    Last edited by Lallo; 04-14-2007 at 12:25 AM.


  •  

    Posting Permissions

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