"stop_tards" - watch your source

Discussion in 'HTML & Website Design' started by wallity, Jan 6, 2007.

  1. #1
    I was browsing around the web and I stumbled across something interesting

    (This isn't my product, it's a random 2checkout order page)
    https://www.2checkout.com/2co/buyer/purchase?sid=85565&quantity=1&product_id=83

    Go to this page and view its source ... scroll down a bit and this is what you see:

     function [B][COLOR=RED]stop_tards[/COLOR][/B]( $this ) {
                        $this.submit1.disabled = true;
    
              var response = confirm("Please select OK to process your order.\nThis process may take a few seconds\nPlease do not press the back or reload button,\ndoing so could result in double billing.\nSelect cancel to return to form.");
    
    
    
                                        if( response) {
    
    
                                                    return true;
    
                                        }
    
                                        else {
    
                                                    $this.submit1.disabled = false;
    
                                                    return false;
    
                                        }
    
                            }
    Code (markup):
    From what I can tell, it's some code to deal with people clicking the order button twice. :rolleyes:
     
    wallity, Jan 6, 2007 IP
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It is a great way to take care of double clicks. Very good for transactional systems. Thanks...
     
    ServerUnion, Jan 6, 2007 IP
  3. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #3
    Awesome. Function. Name.
     
    lorien1973, Jan 6, 2007 IP
  4. slapmatt

    slapmatt Well-Known Member

    Messages:
    251
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    128
    #4
    It does exactly what it says on the tin!
     
    slapmatt, Jan 8, 2007 IP
  5. pimpin007

    pimpin007 Guest

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Us coders do like to have our fun
     
    pimpin007, Jan 8, 2007 IP