button submit

Reply

Join Date: Nov 2007
Posts: 107
Reputation: kings has a little shameless behaviour in the past 
Solved Threads: 2
kings's Avatar
kings kings is offline Offline
Junior Poster

button submit

 
0
  #1
Apr 23rd, 2008
hi
i have a application where i want the user to click the button only once.i want the user to have time interval(eg 5 sec,before tat if he tries to clickit should display pop -up
thanks
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: button submit

 
0
  #2
Apr 26th, 2008
Originally Posted by kings View Post
hi
i have a application where i want the user to click the button only once.i want the user to have time interval(eg 5 sec,before tat if he tries to clickit should display pop -up
thanks
This really is a JavaScript question. Controlling user initiated Events on the browser can be done by one of the browser scripting languages such as JavaScript, Flash, JScript, VBScript etc. JavaScript is the most supported.

So with JavaScript, you will place an onclick event handler on the button. The event handler is a function that will be executed when the event occurs (such as clicking the button).

the function will save the time the button was clicked, and if it had been clicked less then 5 seconds before, it should do nothing.

You can also have the function disable the button, and enable it 5 seconds later. This can be done with setTimeout() function.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 145
Reputation: queenc is an unknown quantity at this point 
Solved Threads: 4
queenc's Avatar
queenc queenc is offline Offline
Junior Poster

Re: button submit

 
0
  #3
Apr 28th, 2008
hmmmm........
i want the time interaval between the two click as five sec.when the user click the first time it should redirect him to another page,second time it should alert a message
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 145
Reputation: queenc is an unknown quantity at this point 
Solved Threads: 4
queenc's Avatar
queenc queenc is offline Offline
Junior Poster

Re: button submit

 
0
  #4
Apr 28th, 2008
please send sample code
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 145
Reputation: queenc is an unknown quantity at this point 
Solved Threads: 4
queenc's Avatar
queenc queenc is offline Offline
Junior Poster

Re: button submit

 
0
  #5
Apr 28th, 2008
sa
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC