Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Urban Björkman on Jun 16, 2009 02:34
open dhtmlx forum
Calendar Operation aborted error in Internet Explorer

Hello

I am trying to implement the calendar but cant quite get it to work properly in IE

<input type="text" id="FieldAttendeePersonFirstName" name="Field.Attendee.PersonFirstName" size="40" maxlength="40" value="" class="InputField">


<script language="javascript">
mCal46277 = new dhtmlxCalendarObject("FieldAttendeePersonFirstName");
mCal46277.draw();
</script>

the code is pretty simple and works fine in Firefox
the funny thing is that IE works fine if i try to attach the calendar to a DIV but causes Operation Abort error when attaching to the textbox

I have tried different versions of the dhtmlxcalendar.js (the latest one just a few days old, from another post here in the FAQ)

Best regards
Urban
Answer posted by Alex (support) on Jun 16, 2009 06:35

Hello,

please, this code when page is loaded:

window.onload = function(){

mCal46277 = new dhtmlxCalendarObject("FieldAttendeePersonFirstName"); 
mCal46277.draw();

}

Please, check calendar samples in its package dhtmlxCalendar/samples/