I’ve added plugin calendar http://www.grails.org/plugin/calendar to my web app. I don’t know how to handle change value event, get date and call ajax request to refresh some other part of the page that depends on this date. Where should I call controller/action?
I’ve added plugin calendar http://www.grails.org/plugin/calendar to my web app. I don’t know how to
Share
Attach an
onchangelistener to the element(s) that the calendar plugin stores the date/time in. You can use the remoteFunction tag to generate the JavaScript function that makes the AJAX call. For example, if the time is stored in an element with idfoo, the following will invoke themyActionaction ofFooControllerwith the selected date sent as the value of thecurrentDateparameter