Focus Issue Due to AJAX Refresh
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, In my ASP.Net application i am using AJAX. Basically i am implementing Chat Application. At a time many chat windows will be opened and based on the AJAX time interval messages will be updated in the chat screen. My problem is i have set default focus as the Textbox and the text box is inside AJAX Panel. for every ajax refresh in each chat window the setfocus functionality is being called and all the windows are interchanging unnecessarily. From java script i want to know weather the current page is active or not,if it is active then the focus need to be on the textbox if the current page is not active the focus should not be on the textbox. can any one help me in this regard. Prasad.