Categories | Question details Back To List | ||||||||||||||
scheduler.attachEvent - onXLE - Type mismatch error on F5 Refresh Hello, My project has been working fine but now, out of the blue, when I press F5 to refresh a page I'm getting an error: htmlfile: Type mismatch. It's happening in this function from dthmlxScheduler.js: scheduler.attachEvent("onXLE", function () { var A; if (A = this.config.show_loading) { this._obj.removeChild(A); <<<----------- happening here ****** this.config.show_loading = true } }); If I select to Continue, then the program continues on but the loading animated GIF continues going. Thoughts? Here is my code that configures and calls the Scheduler: scheduler.config.xml_date = "%Y-%m-%d %h:%i%a"; scheduler.config.default_date = "%M %d, %Y"; scheduler.config.month_date = "%M %d, %Y"; scheduler.config.day_date = "%D, %M %d"; scheduler.config.hour_date = "%h:%i%a"; scheduler.config.readonly = true; scheduler.config.details_on_dblclick = true; scheduler.config.lightbox.sections = [ { name: "description", height: 130, map_to: "text", type: "textarea", focus: true }, { name: "time", height: 72, type: "time", map_to: "auto" } ] scheduler.config.date_step = "7"; scheduler.config.multi_day = true; scheduler.config.drag_create = false; scheduler.config.drag_move = false; scheduler.config.drag_resize = false; scheduler.config.dblclick_create = false; scheduler.config.show_loading = true; scheduler.config.icons_edit = ["icon_cancel"]; scheduler.config.icons_select = ["icon_details"]; scheduler.locale.labels.icon_delete = ""; scheduler.locale.labels.icon_save = ""; scheduler.locale.labels.icon_edit = ""; scheduler.init('scheduler_here', null, 'month'); scheduler.setLoadMode("month"); scheduler.attachEvent("onClick", function() { return false; }) scheduler.load('codebase/schedulerData.aspx'); My schedulerData.aspx page simply returns data from a stored proc that's been put into proper XML format. Answer posted by Stanislav (support) on Oct 12, 2009 07:25 I'm really not sure how is such situation can occur. Please try to use the attached js files - each of them contains different updates , which are related to described situation. Attachments (2)
Answer posted on Oct 12, 2009 10:17 That seemed to help some. The error is going away but the animated GIF is still there after I press F5 or if the user is redirected back to the page.
|