...

View Full Version : IE7 in Iframe, text box does not accepting keyboard focus



hemasekhar
04-11-2007, 12:27 PM
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.

Lallo
04-11-2007, 03:25 PM
Can you be more precise and provide the code if possible?

hemasekhar
04-12-2007, 06:31 AM
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.

Lallo
04-14-2007, 12:20 AM
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!

Lallo
04-14-2007, 01:14 AM
Just add this:


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

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

C ya!

:cool:

Lallo
04-14-2007, 01:21 AM
About the keyboard focus - if you think of the accessible key this is the solution ( tested!!! ):
Add this

AccessKey="m"to the ASP.NET item that you want to be accessible through the keyboard:

<asp:TextBox ID="message" Columns="40" Rows="4" runat="server" CssClass="textBox" TextMode="MultiLine" />Example:


<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!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum