Click here to Skip to main content
15,885,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used ajax update progress during page post-back. Once the postback is performed the update progress does works but the user can tab through the controls and they can type as well. Is there any option to stop tabbing.
Posted
Comments
ZurdoDev 29-Aug-14 8:13am    
Not that I know of. Isn't that the purpose of using async calls? To allow the user to keep going and the UI to be responsive?

Perhaps you need to blockout the UI until your process is done.
[no name] 29-Aug-14 9:43am    
What is wrong with that ? May be user is preparing for the next action.
Strikerzz Arut 5-Sep-14 6:40am    
As the next control which will do postback after focusing out from it, the next thread will be start running before completing the first thread's operation. This ends in unexpected results.

1 solution

Use a transparent model popup window with a progress animation if you really want to do what you are trying to do. Trying to prevent tab action doesn't sound very good from an UX point of view.
 
Share this answer
 
Comments
Strikerzz Arut 5-Sep-14 6:43am    
I have a ajax update progress with transparent screen and loading image at the center. My question is whether we can temp block the 'tab' key press until the postback operation completes?
Rajiv Gogoi 5-Sep-14 11:38am    
try this with javascript --
$(document).keydown(function(objEvent) {
if (objEvent.keyCode == 9) { //tab pressed
objEvent.preventDefault(); // stops its action
}
})
Strikerzz Arut 12-Sep-14 10:20am    
How can we detect the postback operation from client side? If it is detected, I can use the above codes to restrict tab key.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900