PDA

View Full Version : how to perform external java script !


oleane
08-29-2004, 08:55 AM
Is it possible to execute external javascript into .lzx canvas ?

I would like to include jscalendar widget !
after reading the documentation we can instantiate a calendar object. But i don't know how to do that..

var cal = new Calendar(
cal.weekNumbers = false; // do not display week numbers
cal.showsTime = true; // include a time selector
cal.setDateFormat("%Y.%m.%d %H:%M"); // set this format: 2003.12.31 23:59
cal.setDisabledHandler(function(date, year, month, day) {
// verify date and return true if it has to be disabled
// ``date'' is a JS Date object, but if you only need the
// year, month and/or day you can get them separately as
// next 3 parameters, as you can see in the declaration
if (year == 2004) {
// disable all dates from 2004
return true;
}
return false;
});
)

What do you think about that ?