cancel
Showing results for 
Search instead for 
Did you mean: 

Protect DoubleSubmit

Former Member
0 Kudos

Hi ,

We are using BSP applications for Handheld devices for Retail stores. Since these devices does not function properly with content design (DESIGN2002 & 2003), we are using Classic design.

But the problem is that we cannot use the <XHTMLB:PROTECTDOUBLESUBMIT> with classic design. So we are coding manually, i.e., when the button for 'POST' is clicked, we need to disable the buttons till the response is obtained to prevent multiple clicks.

Can anybody suggest some solution for this?

Thanks,

Shankar

Accepted Solutions (1)

Accepted Solutions (1)

RenaldWittwer
Contributor
0 Kudos

Hi,

have a look into this weblog: /people/renald.wittwer/blog/2005/02/18/bsphtml-hide-the-submit-button-after-clicking-it

Perhaps ther are useful ideas.

Best regards

Renald

Former Member
0 Kudos

Hi Renald,

The weblog was very helpful. Thanks.

Thanks,

Shankar

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shankar,

check out this code,

<script language="javascript">

function SetDisabled(elem,disable)

{

var ip = document.getElementById(elem);

ip.disabled = disable ;

}

</script>

<htmlb:button id ="B1' text = "disable"

onClientClick = "javascript:SetDisabled('B1', 'true');" />

Regards,

Azaz Ali.

Former Member
0 Kudos

Hi Azaz,

Thanks for your reply. It worked fine.

Thanks,

Shankar