Javascript error from Telerik javascript

4 posts, 0 answers
  1. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 09 Jun 2011 Link to this post

    Hello,
    I am using 2011.1.519.40. I have this error in IE9 but not FF4.

    I have a RadScheduler in a UserControl on an aspx page that I open with a Response.Redirect() from another aspx page. From the Scheduler page, if I click the browser Back button I get this javascipt error: "Microsoft JScript runtime error: Expected ';'"

    The following is the portion of the javascript where the error happens. IE throws the error on the last line.
    /* START Telerik.Web.UI.Calendar.RadCalendarScript.js */
    Type.registerNamespace("Telerik.Web.UI");
    $telerik.findCalendar=$find;
    $telerik.toCalendar=function(a){return a;
    };
    Telerik.Web.UI.RadCalendar=function(a){Telerik.Web.UI.RadCalendar.initializeBase(this,[a]);
    this._formatInfoArray=null;
    this._specialDaysArray=null;
    this._viewsHash=null;
    this._monthYearNavigationSettings=null;
    this._stylesHash=null;
    this._dayRenderChangedDays=null;
    this._viewRepeatableDays=null;
    this._postBackCall=null;
    this._firstDayOfWeek=null;
    this._skin=null;
    this._calendarWeekRule=null;
    this._culture=null;
    this._zIndex=null;
    this._enableShadows=true;
    this._nextFocusedCell=null;
    this._hoveredDate=null;
    this._hoveredDateTriplet=null;
    this._documentKeyDownDelegate=null;
    this._enabled=true;
    this._useColumnHeadersAsSelectors=true;
    this._useRowHeadersAsSelectors=true;
    this._showOtherMonthsDays=true;
    this._enableMultiSelect=true;
    this._singleViewColumns=7;
    this._singleViewRows=6;
    this._multiViewColumns=1;
    this._multiViewRows=1;
    this._fastNavigationStep=3;
    this._enableNavigationAnimation=false;
    this._cellDayFormat="%d";
    this._presentationType=Telerik.Web.UI.Calendar.PresentationType.Interactive;
    this._orientation=Telerik.Web.UI.Calendar.Orientation.RenderInRows;
    this._titleFormat="MMMM yyyy";
    this._dayCellToolTipFormat="dddd, MMMM dd, yyyy";
    this._showDayCellToolTips=true;
    this._dateRangeSeparator=" - ";
    this._autoPostBack=false;
    this._calendarEnableNavigation=true;
    this._calendarEnableMonthYearFastNavigation=true;
    this._enableRepeatableDaysOnClient=true;
    this._enableViewSelector=false;
    this._enableKeyboardNavigation=false;
    this._showRowHeaders=false;
    this._navigateFromLinksButtons=true;
    this._rangeSelectionStartDate=null;
    this._rangeSelectionEndDate=null;
    this._rangeSelectionMode={};
    this._hideNavigationControls=false;
    this._onLoadDelegate=null;
    };
    Telerik.Web.UI.RadCalendar.prototype={initialize:function(){Telerik.Web.UI.RadCalendar.callBaseMethod(this,"initialize");
    this.EnableTodayButtonSelection=(this.get_monthYearNavigationSettings()[4]=="False")?false:true;
    this.DateTimeFormatInfo=new Telerik.Web.UI.Calendar.DateTimeFormatInfo(this.get__FormatInfoArray());
    this.DateTimeFormatInfo.Calendar=Telerik.Web.UI.Calendar.GregorianCalendar;
    this.DateTimeFormatInfo.CalendarWeekRule=this._calendarWeekRule;
    var e,l,f;
    var c=this._auxDatesHidden();
    var g=eval(c.value);

    At this point, c.value is {"enabled":true,"emptyMessage":"","minDateStr":"1/1/1900 0:0:0","maxDateStr":"12/31/9999 0:0:0"}

    Is this an issue in the _auxDatesHidden() function which populates 'c'? Or am I doing something wrong?

    Thanks,
    Dan
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 15 Jun 2011 Link to this post

    Hello Dan Lehmann,

    I am not sure what can cause the problem. Could you please send me a sample project that reproduces the issue so I can inspect it and help you?

    Thank you!

    P.S: As this is a forum post and you are not allowed to attach .zip files you can use one of the sites for free online storage as 4shared.com.

    All the best,
    Veronica Milcheva
    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 15 Jun 2011 Link to this post

    I cannot duplicate the issue anymore. It may have been an IE caching old .js files. In IE I unchecked "Preserve Favorites website data" and cleared the Browsing History.
  5. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 15 Jun 2011 Link to this post

    Hello Dan Lehmann,

    I suppose it was some cache issue. However please feel free to contact me if the issue occures again.

    Regards,
    Veronica Milcheva
    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