This is a migrated thread and some comments may be shown as answers.

Client Side Support needed for RadCaptcha

1 Answer 168 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Aytaç Utku TOPAL
Top achievements
Rank 2
Aytaç Utku TOPAL asked on 07 Jul 2009, 10:59 AM
Hi,
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

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 09 Jul 2009, 02:44 PM
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"
var 
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,
Pero
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
Captcha
Asked by
Aytaç Utku TOPAL
Top achievements
Rank 2
Answers by
Pero
Telerik team
Share this question
or