Scripting error

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

    Posted 13 Jun 2011 Link to this post

    Hi,

    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.

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

    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

    Regards
    Caesar
  2. Pavel
    Admin
    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,
    Pavel
    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