I need a Javascript to delay the Click interval of user for about 0.5 Seconds

R

rishabhshrivastava

Hi,

I am using a TabContol in a WebPage in my ASP.NET application, The
problem is when the user Tabs through the pages too fast i.e more than
2 clicks in 0.5 seconds or so He looses tha data, may be the Viewstate
of the webpage is getting corrupted.

I thought the way around this problem would be to put a javascript on
clientside to control the clicks on the web page this shoudl solve the
problem.


Any Ideas how this can be achieved???
 
I

Ivo

I am using a TabContol in a WebPage in my ASP.NET application, The
problem is when the user Tabs through the pages too fast i.e more than
2 clicks in 0.5 seconds or so He looses tha data, may be the Viewstate
of the webpage is getting corrupted.

I thought the way around this problem would be to put a javascript on
clientside to control the clicks on the web page this shoudl solve the
problem.

Sounds like you 're approaching the problem from the wrong end and try to
solve a sysmptom rather than the problem itself. Any way, an idea is check a
flag each time a click occurs, if it is "true", retrurn immediately.
Otherwise, set it to "true", and set a setTimeout( 'theflag=false', 1000 ).
This should prevent multiple clicks in a second.
hth
ivo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top