Hallo<br><br>I am sending this message again, as the previous one bounced.<br>(My apologies - I was sending from a different address than the one I subscribed with.)<br><br>I have a listing of objects, and the fields are updated using kss.<br>
One of the fields is a DateField and the user can update it using a javascript "date picker":<br>The date is picked from the calendar/date picker and then javascript updates a text input with the date.<br>
How can I cause this "change" of the text input to trigger the kss change event?<br>It is triggered if I type the date manually into the text input, but not when its done by the javascript.<br><br>This is what pops up the calendar:<br>
<br>if (!(cal && params.cache)) {<br> window.calendar = cal = new Calendar(params.firstDay,<br> null,<br> onJsCalendarDateUpdate,<br> function(cal) { cal.hide(); });<br> cal.time24 = true;<br>
cal.weekNumbers = true;<br> mustCreate = true;<br> } else {<br> cal.hide();<br> }<br><br>And this is what writes the date to the text input:<br><br>function onJsCalendarDateUpdate(cal) { <br> var daystr = '' + cal.date.getDate();<br>
if (daystr.length == 1)<br> daystr = '0' + daystr;<br> var monthstr = '' + (cal.date.getMonth()+1);<br> if (monthstr.length == 1)<br> monthstr = '0' + monthstr;<br> cal.params.inputField.value = '' + cal.date.getFullYear() + '/' + monthstr + '/' + daystr;<br>
}<br><br>How do I get that last line, that writes the date string to the text input, to trigger the following kss change event?:<br><br>input.title, input.detail, input.nextaction, input.person, input.due:change {<br> action-server: kss_test_change;<br>
kss_test_change-item: nodeAttr('id', true);<br> kss_test_change-field: nodeAttr('class');<br> kss_test_change-value: currentFormVar();<br>}<br><br>I need to update the objects "Due" field, along with the "Title", "Detail" etc.