Client Side Support needed for RadCaptcha

2 posts, 0 answers
  1. Aytaç Utku TOPAL
    Aytaç Utku TOPAL avatar
    14 posts
    Member since:
    Apr 2008

    Posted 07 Jul 2009 Link to this post

    I am trying to set focus and then validate RadCaptcha using javascript. But I could't find any resource about Client API's of Captcha. Do you have any documentation? Or could you please show me how will I validate Captcha with javascript. 
    I use the code below to set focus to captcha? Please tell me where am I wrong?
            $find('<%=myCaptcha.ClientID %>').set_focus(); 

    I would appreciate it a lot, if you could share any documentation about client support of captcha.
    Thanks in Advance.
    Aytaç Utku TOPAL
  2. Pero
    Pero avatar
    1156 posts

    Posted 09 Jul 2009 Link to this post

    Hi Aytaç,

    When we implemented the RadCaptcha control we decided that for security reasons it should always be validated on the server, and never on the client. At the moment all of its properties are server controlled (it has only server-side API). However if you want to get a reference to the RadCaptcha TextBox you can do it by the following JavaScript code line:
    //The ClientID of the RadCaptcha text box is always RadCaptchaID + "_CaptchaTextBox"
    captchaTextBox = document.getElementById('RadCaptcha1_CaptchaTextBox');  

    Moreover, if this does not help, you can provide more details about what exactly you are trying to achieve or open a new support ticket and send us a sample project. We would be glad to help you.
    You can read more about the control at our online documentation.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Back to Top