Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

- - - - -

Preventing double clicks


  • Please log in to reply
3 replies to this topic

#1 Guest_leon_*

Guest_leon_*
  • Guest

Posted 04 June 2006 - 07:07 PM

If I wanted to use CF instead of JavaScript to prevent a user from double-clicking on a submit button and submitting their data more than once, what would it be?
  • 0

#2 Lop

Lop

    Speaks fluent binary

  • Just Joined
  • PipPipPipPipPipPipPip
  • 1112 posts

Posted 19 June 2006 - 06:07 PM

I know using javascript it is very easy

<INPUT TYPE="Button" 
       VALUE="Change Quantities" 
       onClick="if(this.value == 'Change Quantities') this.form.submit(); 
        this.value = 'Button already clicked';"> 

CF is server side so it can't do much for you on the client side.
  • 0

#3 Guest_Kaabi_*

Guest_Kaabi_*
  • Guest

Posted 04 July 2006 - 05:22 AM

So that's just another thing Coldfusion can't do, what is it's main purpose anyway? I think I'm going to read that "What is Coldfusion?" thread to further understand it.
  • 0

#4 Lop

Lop

    Speaks fluent binary

  • Just Joined
  • PipPipPipPipPipPipPip
  • 1112 posts

Posted 04 July 2006 - 07:00 AM

Yup, coldfusion is like php. Ran on the server side. You need to use java or even better, AJAX to run things on the client side.
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download