The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi... Little question... Is there someway to "disable" the submit button once clicked?
This is because some times my users double-click the button by accident or because they don't "understand" the AJAX effect and click again... And then they post 2 or 3 times... So, maybe a way to disable the button will prevent this... I remember seeing this in some way of JavaScript, but i can't found it... And I've search the forum too... sorry if someone have already asked... Thanks!
|
|
#2
|
|||
|
|||
|
I've fount this:
Code:
<script type="text/javascript">
function disable_enable(){
if (document.all || document.getElementById){
if (document.vbform.sbutton.disabled==false)
document.vbform.sbutton.disabled=true
else
document.vbform.sbutton.disabled=false
}
}
</script>
Code:
onclick="javascript:disable_enable()" |
|
#3
|
||||
|
||||
|
Agreed, I would very much like to see a fix/workaround for this. I get lots of double-posts as a result of folks double-clicking.
|
|
#4
|
||||
|
||||
|
Just set a minimum time between posts.
|
|
#5
|
|||
|
|||
|
JumpD, I've got a minimun time, AND a "Merge Double Post" hack.... but sometimes none of them works, and I still get double posts...
|
|
#6
|
||||
|
||||
|
Yup, what ElForro said, same deal here.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|