Scripting error

2 posts, 0 answers
  1. Caesar
    Caesar avatar
    59 posts
    Member since:
    Aug 2008

    Posted 13 Jun 2011 Link to this post


    Maybe this case doesn't occur to often, but if localizing the calendar texts and setting any text to "</script>", there will be a script error.

    <telerik:RadCalendar ID="rc1" runat="server">
                <FastNavigationSettings OkButtonCaption="</script>">

    The only thing I can see that may be wrong in the output is that the slash should be replaced with "\/". The funny thing is that if typing any other text than "script" seems ok. Both IE9 and Firefox 4 reports this scripting error:
    unterminated string literal

  2. Pavel
    Pavel avatar
    904 posts

    Posted 16 Jun 2011 Link to this post

    Hello Caesar,

    I think that this is expected as setting a closing script tag in the FastNavigation control's button caption corrupts all the scripts that are added after that.

    Best wishes,
    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.

Back to Top