Counting button hits.

Results 1 to 4 of 4

Thread: Counting button hits.

  1. #1
    Join Date
    Dec 1969

    Default Counting button hits.

    Is there a way to monitor how many times a submit button is clicked on an asp page.? Thank you in advance.

  2. #2
    Join Date
    Dec 1969

    Default RE: Counting button hits.

    I don&#039t understand why you would want to do this? If you give me more info I might be able to help?

  3. #3
    imran Qureshi Guest

    Default RE: Counting button hits.

    Hi,<BR>This may be possible with ASP+ as and when released !<BR><BR>A quick thought:<BR>If the submit button is part of a form submission, then you can create a counter script which can increment every time the page is accessed. The only way the referring page is accessed is when the submit button on the form is pressed !<BR><BR>Hope this is clear.<BR><BR>IQ

  4. #4
    Steve Cimino Guest

    Default Solution

    I use it so the user doesn&#039t keep pressing the Submit button hundreds of times... I think that&#039s what he wants it for:<BR><BR>var submitcount = 0; //Keep this global!!!<BR><BR>function SubmitMe(theForm){<BR><BR>if (submitcount == 0){<BR>submitcount++;<BR>theForm.submit();<BR>}<BR >else<BR>{<BR>alert("You have already submitted this form!");<BR>}<BR>}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts