IE 7 Focus Issue
-
Hello All, I am in the way of developing a web-chat application. In my ASP.Net application i am using AJAX. In my application first the user will login and can navigate through the page. If he like to chat then he need to click on a link, then a small ASPX Page will be opened. This will be opened via JAVA Script function named "window.open()". In this chat window i used AJAX and this will refresh for every 5 seconds. Normally the focus in the chat window will be on the text area in which the text will be entered. Even i followed the same trend. Just think the Textbox id is "TB_ToSend". In this chatwindow i have given "defaultfocus" as "TB_ToSend" and for every AJAX refresh in the OnTimer Function i have given "ScriptManager1.SetFocus(TB_ToSend);" where ScriptManager1 is the ScriptManager id. But i face a problem here in IE 7 when i click on the Parent window when the chat window is open(commonly we do it when we like to switch between windows) ,then after 5 seconds the chat window will popup and i lose focus on the parent Window(due to the focus i set in AJAX timer). This is not the expected behaviour, the expectation is that the focus need to be on the Parent window. This Issue doesnot occur in FireFox. Can anyone give me sugession to overcome this or is there any other way to set the focus.