3.2.0

Problem integrating calendar with AW

I have the following calendar code:

function calendar2(obj_target) {

....
....
    // validate input parameters
    if (!obj_target)
        return cal_error("Error calling the calendar: no target control specified");
    if (obj_target.value == null)
        return cal_error("Error calling the calendar: parameter specified is not valid target control");


that is supposed to be called like this:

var cal1 = new calendar2(document.forms['tstest'].elements['input1']);


as i created an AW.UI.Input to hold the date, what can i pass as a parameter to
new calendar2(...)
to not get an error?

Thanks.
Ecil
July 6,
You should assign the id with setId() method,

var obj = new AW.UI.Input;
obj.setId("myInput");
...
And the id of the actual input tag will be myInput-box-text (check with FF DOM Inspector)
Alex (ActiveWidgets)
July 9,
Can you please elaboarte on "the id of the actual input tag will be myInput-box-text (check with FF DOM Inspector)" where exactly do I look it up?

Thank you
Newbie
August 3,

This topic is archived.

See also:


Back to support forum