943,678 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1459
  • PHP RSS
Apr 23rd, 2008
0

button submit

Expand 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
Similar Threads
Reputation Points: 3
Solved Threads: 2
Junior Poster
kings is offline Offline
107 posts
since Nov 2007
Apr 26th, 2008
0

Re: button submit

Click to Expand / Collapse  Quote originally posted by kings ...
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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Apr 28th, 2008
0

Re: button submit

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
Reputation Points: 9
Solved Threads: 4
Junior Poster
queenc is offline Offline
145 posts
since Mar 2008
Apr 28th, 2008
0

Re: button submit

please send sample code
Reputation Points: 9
Solved Threads: 4
Junior Poster
queenc is offline Offline
145 posts
since Mar 2008
Apr 28th, 2008
0

Re: button submit

sa
Reputation Points: 9
Solved Threads: 4
Junior Poster
queenc is offline Offline
145 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: is it possible to capture images using php
Next Thread in PHP Forum Timeline: multiple parameter search





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC