jquery load method

Posted by cognos79 on Stack Overflow See other posts from Stack Overflow or by cognos79
Published on 2010-04-23T02:13:39Z Indexed on 2010/04/23 2:33 UTC
Read the original article Hit count: 364

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about load