Thursday, May 24, 2012

Disable The Button To Prevent The Double Click


Scenario: We have scenario like where we have payment interface which has been triggered by Payment button on Payment applet. Now customer want to make sure this button would be pressed only once till the request is not get processed successfully.

Solution:  This can be achieved by two options. First one is browser script and another is very siebel and also applicable for eService as well

·         Go To Applet Control

·         Select Payment Control and Go to HTML attribute of this control.

·         Copy below value in HTML Attribute:

                onclick="function fn1(){disabled=true;}setTimeout(fn1, 100);"

            Note: Here 100 is timeout interval in ms.

No comments:

Post a Comment