I am using mscaptcha image and trying to only reload the captcha image on button click. Seems like the captcha image is being loaded twice sometimes.
<script type="text/javascript">
$(document).ready(function() {
$('#btnSubmit').click(function() {
$('#dvCaptcha').load('default.aspx #dvCaptcha');
});
});
</script>
<div id="btnDiv">
<asp:Button ID="btnSubmit" runat="server" Text="Submit" />
</div>
<div id="dvCaptcha">
<cc1:CaptchaControl ID="ccJoin" runat="server" CaptchaBackgroundNoise="none" CaptchaLength="5" CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="None" CaptchaMinTimeout="5" CaptchaMaxTimeout="240" />
</div>
Any ideas?