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

Click on the play audio link in the captcha will focus to the top of the form

1 Answer 102 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Donny
Top achievements
Rank 1
Donny asked on 20 Apr 2011, 05:56 PM
I am using RadCaptcha in a user control in an application form.  It contains many asp.net controls (ie textboxes, dropdownlists, and etc) that expanded the form from top to bottom result in a vertical scroll bar.  The RadCaptcha is placed at the bottom before the submit button.

Functionality wise, the RadCaptcha is working as expect but everytime I click the link to play the audio, the form would automatically scrolls to the top instead of staying at the bottom.  In contract, the Generate New Image would stay where it is after a new image is generated.  Is this the normal behavor of the control?  How do I prevent it from focus to the top of the form when playing the audio?

Regards,

Donny


===
This is how I added the RadCaptcha to the usercontrol:

 

protected void Page_Init(object sender, System.EventArgs e)
  
  
captcha = new Telerik.Web.UI.RadCaptcha();
  
captcha.ID = "captcha";
  
captcha.ErrorMessage = "The security code you entered did not match. Please try again.";
  
captcha.EnableRefreshImage = true;
  
captcha.CaptchaAudioLinkButtonText = "Play Audio Code";
  
captcha.CaptchaImage.EnableCaptchaAudio = true;
  
captcha.CaptchaImage.AudioFilesPath = Server.MapPath("/forms/RadCaptcha");
  
captcha.CaptchaImage.UseAudioFiles = true;
  
captcha.CaptchaTextBoxLabel = String.Empty;
  
captcha.Visible = true;
  
divCaptcha.Controls.Add(captcha);
  
}

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 22 Apr 2011, 06:13 AM
Hello Donny,

I created a sample project, based on the code you provided, to try to reproduce the issue locally on my machine, but with no success. Could you please test my code on your side and see if you experience any problems? I have attached it to the thread.
In case you can reproduce the issue, please provide a sample project that shows the problem so we can debug it locally. Additionally we need the following information:
  • Version of RadControls for ASP.NET AJAX used
  • Browser and browser version used.

Greetings,
Pero
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Captcha
Asked by
Donny
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or