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

Scripting error

1 Answer 56 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Caesar
Top achievements
Rank 1
Caesar asked on 13 Jun 2011, 11:07 AM
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

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 16 Jun 2011, 08:46 AM
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.

Tags
Calendar
Asked by
Caesar
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or