Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Balasubramanian on Dec 18, 2008 03:40
open dhtmlx forum
Could not show the dhtmlx calender in Firfox And in cchrome

<script>
    function rb(k,InputObj)
 {
  var IpObjectName = InputObj;
  mcal = new dhtmlxCalendarObject(IpObjectName,true,{isMonthEditable:true, isYearEditable:true});
  mcal.show();
 }
</script>

 

  <input type="Text"  size="8"  readonly="readonly"  name="JobPostDateFrom"   style="width:90px;  font-size:12px;" />
   <img style="cursor:pointer;border-width:0px;"  src="../../javascripts/dhtmlxCalendar/imgs/icon_minicalendar.gif"  onclick="rb(1,'JobPostDateFrom')"/>
       
       
   <input type="Text" size="8" readonly="readonly" name="JobPostDateTill"  style="0px;width:90px;font-size:12px;" />  <img style="cursor:pointer;border-width:0px;" 

   src="../../javascripts/dhtmlxCalendar/imgs/icon_minicalendar.gif"   onclick="rb(2,'JobPostDateTill')"/>

Answer posted by Support on Dec 18, 2008 07:44
>>  <input type="Text" size="8" readonly="readonly" name="JobPostDateFrom"
must be
  <input type="Text" size="8" readonly="readonly" id="JobPostDateFrom"
same for other input ( the constructor of calendar requires ID of HTML element )