Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Perillan on Mar 31, 2009 02:54
open dhtmlx forum
dhtmlxcalendar setPosition()

Hi,

setPosition() donīt work
this is the code:

cal= new dhtmlxCalendarObject(campo);
cal.setPosition(campo,'100','100');
cal.draw();
//end code

where "campo" itīs a text input by id="campo"



Answer posted by Alex (support) on Mar 31, 2009 06:30

Hello,

The following code must work:

var campo = document.getElementById("...")

cal= new dhtmlxCalendarObject(campo);
cal.draw();

cal.setPosition(campo);

If problem persists, please provide teh sample where we can recreate it.