Use RadCaptcha in sharepoint 2013

7 posts, 0 answers
  1. Keren
    Keren avatar
    4 posts
    Member since:
    Mar 2015

    Posted 26 May 2015 Link to this post

    Hi,

    I am using RadCaptcha in sharepoint 2013.

    I used the following code in the ascx WP:

    <div class="divCaptcha">         
        <telerik:RadCaptcha ID="RadCaptcha1" runat="server" ValidatedTextBoxID="rcTextBox1" EnableRefreshImage="true"  >
            <CaptchaImage EnableCaptchaAudio="true" RenderImageOnly="true"  BackgroundNoise="Low"></CaptchaImage>
        </telerik:RadCaptcha>

        <div style="float:left">
        <p >Type the code from the image:</p>           
        <asp:TextBox ID="rcTextBox1" runat="server" MaxLength="5" Width="170px"></asp:TextBox>&nbsp;&nbsp;&nbsp;
        <input type="button" title="submit" onclick="CallHandler();" value="submit">
                </div>  
    </div>

     
    And I define the following in the web.config of the
    sharepoint:

       <httpHandlers>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />
    </httpHandlers>

     <handlers>
    <remove name="Telerik_Web_UI_WebResource_axd"/>
    <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" preCondition="integratedMode" />
    </handlers>

     

    I click the link to generate new image – nothing happen.

    Can you help me?

  2. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 29 May 2015 Link to this post

    Hello Keren,

    Please clarify whether the image of RadCaptcha is initially visible. If it is not and the image is grey, the problem could stem from using the captcha in a load balanced environment. You can find information about configuring the captcha in such environment in the following help article: http://www.telerik.com/help/aspnet-ajax/captcha-webfarm-and-webgarden.html

    If there is no image at all when the captcha is first loaded, there could be a problem with the HttpHandler that loads the image. You can verify this by inspecting the console tab of the dev toolbar of your browser. If this is the case, please post the content of the dev toolbar and check if there is authentication or URL redirects that might be blocking the request for the HttpHandler.

    If the image disappears or it is not updated after clicking the link to generate a new image, again you can check and provide the content of the console tab, because the problem most probably stems either from a JavaScript error on the page or from an error with the partial postback that updates the image.

    Regards,
    Slav
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

  3. Keren
    Keren avatar
    4 posts
    Member since:
    Mar 2015

    Posted 31 May 2015 Link to this post

    Thanks Slav for your help, 

    I Want to clarify a few things:

    1. The RadCaptcha is initially visible, but when I click the link the image is not updated.
    2.   I removed the  RadScriptManager and keep the  asp:ScriptManager that in the sharepoint master.
    3.   I receive no error in the console tab, but I receive 200 response from ScriptResource.axd and not from Telerik.Web.UI.WebResource.axd. I also receive no image in the response but the following response that don't
    look like a partial response:

    1|#||4|0|hiddenField|__EVENTTARGET||0|hiddenField|__EVENTARGUMENT||4464|hiddenField|__VIEWSTATE|/wEPDwULLTE3MDA2MTAyMDAPZBYCZg9kFgICAQ9kFgYCAQ9kFgYCBg9kFgJmD2QWAgIBDxYCHhNQcmV2aW91c0NvbnRyb2xNb2RlCymIAU1pY3Jvc29mdC5TaGFyZVBvaW50LldlYkNvbnRyb2xzLlNQQ29udHJvbE1vZGUsIE1pY3Jvc29mdC5TaGFyZVBvaW50LCBWZXJzaW9uPTE1LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPTcxZTliY2UxMTFlOTQyOWMBZAIgD2QWAgIDD2QWAmYPZBYCZg88KwAGAGQCIQ9kFgICAQ9kFgYFJmdfM2Y1MWNlNjBfODFiOF80ZmRlXzgxYjdfMzQxZjc3ZWE1MmM2D2QWAmYPZBYCZg9kFgJmDxYCHglpbm5lcmh0bWwFE9eo15vXmdeRINec15XXkdeZ151kBSZnXzFhNGJmYzRjXzU2ZjJfNDRiN184OWMwX2M1MjA1ZDI5MzAyMA9kFgJmD2QWAmYPZBYCAgIPFgIeB1Zpc2libGVn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ptcha1$CaptchaLinkButton,|25|postBackControlIDs||ctl00$ctl55$WebPartAdder,|114|updatePanelIDs||fctl00$ctl55$WebPartAdderUpdatePanel,,tctl00$ctl47$g_9421a83d_1866_4938_a1c7_f074a00357af$ctl01$RadCaptcha1$ctl01,|0|childUpdatePanelIDs|||0|panelsToRefreshIDs|||2|asyncPostBackTimeout||90|12|formAction||default.aspx|10|pageTitle||

           
    |43|scriptBlock|ScriptContentNoTags|var MSOWebPartPageFormName =
    'aspnetForm';

    |212|scriptBlock|ScriptContentNoTags|var
    g_presenceEnabled = true;

    var g_wsaEnabled = false;

    var g_wsaQoSEnabled = false;

    var g_wsaQoSDataPoints = [];

    var g_wsaLCID = 1037;

    var g_wsaListTemplateId = 850;

    var g_wsaSiteTemplateId = 'BLANKINTERNET#0';

    |1034|scriptBlock|ScriptContentNoTags|var
    _fV4UI=true;var _spPageContextInfo = {webServerRelativeUrl: "\u002f",
    webAbsoluteUrl: "http:\u002f\u002feditdev3.tel-aviv.gov.il",
    siteAbsoluteUrl: "http:\u002f\u002feditdev3.tel-aviv.gov.il",
    serverRequestPath: "\u002fPages\u002fdefault.aspx", layoutsUrl:
    "_layouts\u002f15", webTitle: "Tel-Aviv Dev3", webTemplate:
    "53", tenantAppVersion: "0", isAppWeb: false, webLogoUrl:
    "\u002f_layouts\u002f15\u002fTlvSP2013PublicSite\u002fimages\u002flogo.png",
    webLanguage: 1037, currentLanguage: 1037, currentUICultureName:
    "he-IL", currentCultureName: "he-IL",
    clientServerTimeDelta: new Date("2015-05-31T07:25:44.7257806Z") - new
    Date(), siteClientTag: "62$$15.0.4701.1000",
    crossDomainPhotosEnabled:false, webUIVersion:15,
    webPermMasks:{High:2147483647,Low:4294967295},pageListId:"{df9ef4a5-c517-43e7-b84f-8d02c16167ca}",pageItemId:130,
    pagePersonalizationScope:1,userId:22, systemUserKey:"i:0\u0029.w|s-1-5-21-961301311-495614365-1225219381-47612",
    alertsEnabled:false, siteServerRelativeUrl: "\u002f",
    allowSilverlightPrompt:'True'};|76|scriptBlock|ScriptContentNoTags|var
    L_Menu_BaseUrl="";

    var L_Menu_LCID="1037";

    var L_Menu_SiteTheme="null";

    |40|scriptBlock|ScriptContentNoTags|var
    _spWebPartComponents = new
    Object();|0|scriptBlock|ScriptContentNoTags||414|scriptBlock|ScriptContentNoTags|function
    ShowUnapprovedResourcesWithTimeout() { if (!browseris.ie6up &&
    g_bResourcesAlreadyChecked) { alert('\u05DC\u05E4\u05E0\u05D9
    \u05E9\u05EA\u05D1\u05D3\u05D5\u05E7 \u05E9\u05D5\u05D1,
    \u05D9\u05D4\u05D9\u05D4 \u05E2\u05DC\u05D9\u05DA
    \u05DC\u05E8\u05E2\u05E0\u05DF \u05D3\u05E3 \u05D6\u05D4.'); return false; }
    showConsoleMessage(l_ur_plsWait, false);window.setTimeout("ShowUnapprovedResourcesPage()",10);
    }|186|scriptBlock|ScriptContentNoTags|l_chkResStatus =
    '\u05D1\u05D5\u05D3\u05E7 \u05D0\u05DD \u05D9\u05E9 \u05D1\u05D3\u05E3
    \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05DC\u05D0 \u05E4\u05D5\u05E8\u05E1\u05DE\u05D5...';

    |202|scriptBlock|ScriptContentNoTags|l_ur_plsWait
    = '\u05E0\u05D0 \u05D4\u05DE\u05EA\u05DF \u05D1\u05E2\u05EA
    \u05D7\u05D9\u05E4\u05D5\u05E9 \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD
    \u05E9\u05DC\u05D0 \u05E4\u05D5\u05E8\u05E1\u05DE\u05D5...';

    |44|scriptBlock|ScriptContentNoTags|l_ur_rfct =
    '__publishingReusableFragment';

    |100|scriptBlock|ScriptContentNoTags|l_ur_wsurl
    =
    'http:\u002f\u002feditdev3.tel-aviv.gov.il\u002f_vti_bin\u002fPublishingService.asmx';

    |30|scriptBlock|ScriptContentNoTags|l_ur_formname
    = 'aspnetForm';

    |701|scriptBlock|ScriptContentNoTags|l_ur_fullreport
    = "\u05D1\u05D3\u05E3 \u05D6\u05D5\u05D4\u05D5
    \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05DC\u05D0
    \u05E4\u05D5\u05E8\u05E1\u05DE\u05D5. \u05D4\u05E6\u05D2 \u05D0\u05EA <a href=\"#\"
    onclick=\"javascript:window.top.open('\u002f_layouts\u002f15\u002fUnapprovedResources.aspx',
    '_unapprovedResourcesReport',
    'height=580,width=540,resizable=yes,status=no,location=no,toolbar=no,menubar=no,directories=no,scrollbars=no');\"
    title=\"\u05E4\u05EA\u05D7 \u05D7\u05DC\u05D5\u05DF \u05D7\u05D3\u05E9
    \u05DC\u05D4\u05E6\u05D2\u05EA \u05D4\u05D3\u05D5\u05D7
    \u05D4\u05DE\u05DC\u05D0\">\u05D4\u05D3\u05D5\u05D7
    \u05D4\u05DE\u05DC\u05D0</a> \u05D1\u05D7\u05DC\u05D5\u05DF \u05D7\u05D3\u05E9.";

    |945|scriptBlock|ScriptContentNoTags|l_ur_fullreportnors
    = "\u05D1\u05D3\u05E3 \u05D6\u05D5\u05D4\u05D5
    \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05DC\u05D0
    \u05E4\u05D5\u05E8\u05E1\u05DE\u05D5. \u05D4\u05E6\u05D2 \u05D0\u05EA <a
    href=\"#\" onclick=\"javascript:window.top.open('\u002f_layouts\u002f15\u002fUnapprovedResources.aspx',
    '_unapprovedResourcesReport',
    'height=580,width=540,resizable=yes,status=no,location=no,toolbar=no,menubar=no,directories=no,scrollbars=no');\"
    title=\"\u05E4\u05EA\u05D7 \u05D7\u05DC\u05D5\u05DF \u05D7\u05D3\u05E9
    \u05DC\u05D4\u05E6\u05D2\u05EA \u05D4\u05D3\u05D5\u05D7
    \u05D4\u05DE\u05DC\u05D0\">\u05D4\u05D3\u05D5\u05D7
    \u05D4\u05DE\u05DC\u05D0</a> \u05D1\u05D7\u05DC\u05D5\u05DF
    \u05D7\u05D3\u05E9. \u05DC\u05E4\u05E0\u05D9 \u05E9\u05EA\u05D1\u05D3\u05D5\u05E7
    \u05E9\u05D5\u05D1, \u05E2\u05DC\u05D9\u05DA <a href=\"#\"
    onclick=\"g_bWarnBeforeLeave =
    false;theForm.submit();\">\u05DC\u05E8\u05E2\u05E0\u05DF \u05D3\u05E3
    \u05D6\u05D4</a>.";

    |184|scriptBlock|ScriptContentNoTags|l_ur_recsready
    = '\u05DC\u05D0 \u05D6\u05D5\u05D4\u05D5 \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD
    \u05E9\u05DC\u05D0 \u05E4\u05D5\u05E8\u05E1\u05DE\u05D5 \u05D1\u05D3\u05E3
    \u05D6\u05D4.';

    |20|scriptBlock|ScriptContentNoTags|var
    g_ProcessedXml;

    |43|scriptBlock|ScriptContentNoTags|var
    g_PageNameForDisplay = 'default.aspx';

    |42|scriptBlock|ScriptContentNoTags|var
    g_PageFileVersionForDisplay = '57.1';

    |108|scriptBlock|ScriptContentNoTags|var
    checkForDraft =
    {"checkForDraftFn":"ShowUnapprovedResourcesWithTimeout();HideServerGeneratedMessage()"};|98|scriptBlock|ScriptContentNoTags|var
    startWorkflow =
    {"startWorkflowFn":"__doPostBack('ctl00$ctl55$ctl11$ctl10','startWorkflow')"};|101|scriptBlock|ScriptContentNoTags|var
    workflowStatus = {"workflowStatusFn":"__doPostBack('ctl00$ctl55$ctl11$ctl11','workflowStatus')"};|31|scriptBlock|ScriptContentNoTags|var
    g_previewRequested = false;|188|scriptBlock|ScriptContentNoTags|var preview =
    {"inputPagePreviewClientId":null,"mobileChannels":null,"previewFn":"if(!g_previewRequested){g_previewRequested=true;__doPostBack('ctl00$ctl55$ctl11$ctl13','previewPage');}"};|282|scriptBlock|ScriptContentNoTags|var
    editSeoProperties =
    {"editSeoPropertiesFn":"__doPostBack('ctl00$ctl55$ctl11$ctl17','editSeoProperties')","forceCheckOut":true,"isCheckedOut":true,"isCheckedOutToCurrentUser":true,"isTermPage":false,"url":"javascript:__doPostBack('ctl00$ctl55$ctl11$ctl17','editSeoProperties')"};|43|scriptStartupBlock|ScriptContentNoTags|var
    _spFormDigestRefreshInterval = 1440000;|18|scriptStartupBlock|ScriptContentNoTags|var
    _fV4UI = true;|1201|scriptStartupBlock|ScriptContentNoTags|

    function _RegisterWebPartPageCUI()

    {

        var
    initInfo = {editable: true,isEditMode: false,allowWebPartAdder: false,listId:
    "{df9ef4a5-c517-43e7-b84f-8d02c16167ca}",itemId: 130,recycleBinEnabled:
    true,enableMinorVersioning: true,enableModeration: false,forceCheckout:
    true,rootFolderUrl:
    "\u002fPages",itemPermissions:{High:2147483647,Low:4294967295}};

       
    SP.Ribbon.WebPartComponent.registerWithPageManager(initInfo);

        var
    wpcomp = SP.Ribbon.WebPartComponent.get_instance();

        var
    hid;

        hid =
    document.getElementById("_wpSelected");

        if
    (hid != null)

        {

           
    var wpid = hid.value;

           
    if (wpid.length > 0)

            {

               
    var zc = document.getElementById(wpid);

                if (zc != null)

                   
    wpcomp.selectWebPart(zc, false);

            }

        }

        hid =
    document.getElementById("_wzSelected");

        if
    (hid != null)

        {

           
    var wzid = hid.value;

           
    if (wzid.length > 0)

            {

               
    wpcomp.selectWebPartZone(null, wzid);

            }

        }

    };

    function __RegisterWebPartPageCUI() {

    ExecuteOrDelayUntilScriptLoaded(_RegisterWebPartPageCUI,
    "sp.ribbon.js");}

    _spBodyOnLoadFunctionNames.push("__RegisterWebPartPageCUI");|471|scriptStartupBlock|ScriptContentNoTags|

    ExecuteOrDelayUntilScriptLoaded(

    function()

    {

    var initInfo =

    {

    itemPermMasks:
    {High:2147483647,Low:4294967295},

    listPermMasks:
    {High:2147483647,Low:4294967295},

    listId:
    "df9ef4a5-c517-43e7-b84f-8d02c16167ca",

    itemId: 130,

    workflowsAssociated: false,

    editable: true,

    doNotShowProperties: false,

    enableVersioning: true

    };

    SP.Ribbon.DocLibAspxPageComponent.registerWithPageManager(initInfo);

    },

    "sp.ribbon.js");

    var g_disableCheckoutInEditMode = false;

    |55|scriptStartupBlock|ScriptContentNoTags|var
    _spWebPermMasks =
    {High:2147483647,Low:4294967295};|692|scriptStartupBlock|ScriptContentNoTags|WPSC.Init(document);

    var varPartWPQ1 =
    WPSC.WebPartPage.Parts.Register('WPQ1','3f51ce60-81b8-4fde-81b7-341f77ea52c6',document.getElementById('WebPartWPQ1'));

    var varPartWPQ2 =
    WPSC.WebPartPage.Parts.Register('WPQ2','1a4bfc4c-56f2-44b7-89c0-c5205d293020',document.getElementById('WebPartWPQ2'));

    var varPartWPQ3 =
    WPSC.WebPartPage.Parts.Register('WPQ3','cd4d3343-1864-4a04-aa24-369ad21304ee',document.getElementById('WebPartWPQ3'));

    var varPartWPQ4 =
    WPSC.WebPartPage.Parts.Register('WPQ4','9421a83d-1866-4938-a1c7-f074a00357af',document.getElementById('WebPartWPQ4'));

    WPSC.WebPartPage.WebURL =
    'http:\u002f\u002feditdev3.tel-aviv.gov.il';

    WPSC.WebPartPage.WebServerRelativeURL =
    '\u002f';

     

    |825|scriptStartupBlock|ScriptContentNoTags|

    function EnsureScripts(scriptInfoList,
    finalFunction)

    {

    if (scriptInfoList.length == 0)

    {

    finalFunction();

    }

    else

    {

    var scriptInfo = scriptInfoList.shift();

    var rest = function () {
    EnsureScripts(scriptInfoList, finalFunction); };

    var defd;

    try

    {

    eval('defd = typeof(' + scriptInfo[1] + ');');

    }

    catch (e)

    {

    defd = 'undefined';

    }

    var ensureKey = scriptInfo[0];

    if (ensureKey == 'SP.Ribbon.js')

    {

    ensureKey = 'ribbon';

    }

    if (scriptInfo[2])

    {

    EnsureScript(ensureKey, defd, null);

    ExecuteOrDelayUntilScriptLoaded(rest,
    scriptInfo[0]);

    }

    else

    {

    EnsureScript(ensureKey, defd, rest);

    }

    }

    }

    function PublishingRibbonUpdateRibbon()

    {

    var pageManager = SP.Ribbon.PageManager.get_instance();

    if (pageManager)

    {

    pageManager.get_commandDispatcher().executeCommand('appstatechanged',
    null);

    }

    }|455|scriptStartupBlock|ScriptContentNoTags|

    function EnsurePublishingConsoleActionScripts()

    {

    EnsureScripts(

    [['SP.Ribbon.js', 'SP.Ribbon', true],

    ['SP.Publishing.Resources.resx',
    'SP.Publishing.Resources', false],

    ['SP.UI.Pub.Ribbon.js', 'Pub.Ribbon', true]],
    PublishingRibbonUpdateRibbon);

    }

    if (_spBodyOnLoadFunctionNames != null
    && !_spBodyOnLoadCalled)

    {

    _spBodyOnLoadFunctionNames.push('EnsurePublishingConsoleActionScripts');

    }

    else

    {

    EnsurePublishingConsoleActionScripts();

    }|82|scriptStartupBlock|ScriptContentNoTags|

    var g_commandUIHandlers =
    {"name":"CommandHandlers","attrs":{},"children":[]};

    |36|onSubmit||UpdateFormDigest('\u002f',
    1440000);|222|onSubmit||if (typeof(SP) != 'undefined' && SP.Ribbon
    && SP.Ribbon.PageState && SP.Ribbon.PageState.PageStateHandler
    && SP.Ribbon.PageState.PageStateHandler.pageStateOnSubmit) SP.Ribbon.PageState.PageStateHandler.pageStateOnSubmit();|0|hiddenField|_wpcmWpid||0|hiddenField|wpcmVal||0|hiddenField|MSOWebPartPage_PostbackSource||0|hiddenField|MSOTlPn_SelectedWpId||1|hiddenField|MSOTlPn_View|0|5|hiddenField|MSOTlPn_ShowSettings|False|0|hiddenField|MSOGallery_SelectedLibrary||0|hiddenField|MSOGallery_FilterString||4|hiddenField|MSOTlPn_Button|none|157|hiddenField|__REQUESTDIGEST|0x5E4BD6864D1C9C30F0CC14BC73216C97F729333E67D1F306279FA92E2157E841C868BEE00796E31DE1D593AD96DC9E3000F20CD647C5B602FD48552F4779EDED,31
    May 2015 07:25:44
    -0000|0|hiddenField|MSOAuthoringConsole_FormContext||0|hiddenField|MSOAC_EditDuringWorkflow||0|hiddenField|InputComments||6|hiddenField|MSOSPWebPartManager_DisplayModeName|Browse|5|hiddenField|MSOSPWebPartManager_ExitingDesignMode|false|0|hiddenField|MSOWebPartPage_Shared||0|hiddenField|MSOLayout_LayoutChanges||0|hiddenField|MSOLayout_InDesignMode||0|hiddenField|_wpSelected||0|hiddenField|_wzSelected||6|hiddenField|MSOSPWebPartManager_OldDisplayModeName|Browse|5|hiddenField|MSOSPWebPartManager_StartWebPartEditingName|false|5|hiddenField|MSOSPWebPartManager_EndWebPartEditing|false|3|hiddenField|SPPageStateContext_PreviousAuthoringVersion|410|3|hiddenField|SPPageStateContext_PreviousAuthoringItemUser|130|0|hiddenField|MSOShowUnapproved_Xml||

  4. Keren
    Keren avatar
    4 posts
    Member since:
    Mar 2015

    Posted 31 May 2015 in reply to Slav Link to this post

    Thanks Slav for your help, 

    I Want to clarify a few things:

    1. The RadCaptcha is initially visible, but when I click the link the image is not updated.
    2.   I removed the  RadScriptManager and keep the  asp:ScriptManager that in the sharepoint master.
    3.   I receive no error in the console tab, but I receive 200 response from ScriptResource.axd and not from Telerik.Web.UI.WebResource.axd. I also receive no image in the response but the following response that don't
    look like a partial response with Html an javascript...

  5. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 03 Jun 2015 Link to this post

    Hello Keren,

    The described behavior is quite strange. If a partial postback is triggered when the image refresh link is clicked and there are no errors during the request, the update panel in the RadCaptcha control does not update its image for some reason.

    I tried to reproduce the problem at hand by creating a Web Part with the captcha setup you posted, but to no avail. You can find it attached to this post and compare it with your actual setup. If I missed something, you can modify the sample so that the problem is reproducible and send it for further inspection.

    In case the problem is reproducible with my Web Part as well, send step by step instructions for recreating the issue, your web.config file and the implementation of the page, in which you load the Web Part so that I can try reproducing it locally.

    Regards,
    Slav
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Keren
    Keren avatar
    4 posts
    Member since:
    Mar 2015

    Posted 08 Jun 2015 in reply to Slav Link to this post

    Thank you very much Slav

    Your example help me to understand that RadCaptcha doesn't refresh because I am using angularjs on the page.

    Is there a problem using RadCaptcha control with angularjs?
  7. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 11 Jun 2015 Link to this post

    Hi Keren,

    There is no specific problem with using RadCaptcha on a page with AngularJS that I can think of. It depends on the functionality of AngularJS that is used, for example if some of the rendered HTML elements of the captcha are extended by the framework, this could affect the way the captcha works.

    I prepared a page with RadCaptcha and a simple AngularJS example that functions as expected. You could modify it so that it matches your setup which will allow me to try determining what exactly breaks the captcha refresh image feature.

    Regards,
    Slav
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top