A long delay
After a long period of hard work, I return here to this blog, trying to update some of the scripts I published time ago.
I saw that the script to prevent double submits had a great success around here...but also it had (and probably has) some bug.
One of those bug is strictly connected to the way browsers are managing events. I the case of my script, the return of an onsubit event was simply ignored: so there was no way to stop the layer to popup after the submit button was pressed, even if the return of the event was false.
Now I slightly modified the script, removing the use of Event.observe method (the prototype extension) and adding a more rough but secure way of handling the onsubmit form event, hooking it and calling it just before the layer show.
You can download the latest version here.
The previous version is still available here.
The example was also updated, to show how the script now works.
I saw that the script to prevent double submits had a great success around here...but also it had (and probably has) some bug.
One of those bug is strictly connected to the way browsers are managing events. I the case of my script, the return of an onsubit event was simply ignored: so there was no way to stop the layer to popup after the submit button was pressed, even if the return of the event was false.
Now I slightly modified the script, removing the use of Event.observe method (the prototype extension) and adding a more rough but secure way of handling the onsubmit form event, hooking it and calling it just before the layer show.
You can download the latest version here.
The previous version is still available here.
The example was also updated, to show how the script now works.


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home