Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
SIR, i have 2 button on window Save and Cancel and sending a request to server and when i m clicking on OK button via Mouse then it save successfully but when i have no mouse and
suppose i am selecting the save button option via TAB key(from key board) and hitting ENTER key( keboard) 2 times very fast ..then it send 2 request and save same record 2 time in data base .


what i have to do. to avoid this .
Posted
Updated 28-Jul-13 20:51pm
v4
Comments
Prasad Khandekar 29-Jul-13 2:34am    
Is it ASP.NET you are talking about?
siddharth629 29-Jul-13 2:47am    
i m using Extjs .
Rockstar_ 29-Jul-13 2:36am    
Create primary or unique columns in ur database
siddharth629 29-Jul-13 2:42am    
i have a identity key and rec number is always unique ..but other
record a same ..
Rockstar_ 29-Jul-13 2:36am    
Clear textboxes after submit

1 solution

You can use like below.
Note:I don't know your exact code.But you can use something like below.That is used .off('click) with your button's click event.

C#
listeners: {
   'render': function(panel) {
       panel.body.off('click').on('click', function() {
           alert('onclick');
       });
    }
}



I hope this will help to you.
 
Share this answer
 

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