I am doing a application using the DHTMLX calendar mobile
I’m using a list, and when I select an option they redirect me to the calendar loading the calendar data from a Json
When I use for the first time, it goes well, but when i go back to the list, and select another option, the calendar appears empty
I’m using the multiview sample to charge the data
here they are the functions that im using:
$$(“list_2”).attachEvent(“onafterselect”, function(id) {
var dato = $$(“list_2”).item($$(“list_2”).getSelected());
var grupos = dato.ID_GRUPO;
var today=fecha();
loadEventosScheduler(grupos, today);
return true;
});
/* this function open the calendar, but only works the first time*/
function loadEventosScheduler(grupos, today) {
$$("scheduler").load(
*MYURL*, "json");
$$("scheduler").show();
}
/* this is the back to the list button*/
$$(“button6”).attachEvent(“onItemClick”, function(id) {
$$("lista_grupos").show();
return true;
});
I hope you can help me with a solution =)
Thanks!