[Seaside] Re: jQuery datepicker callback
Sebastian Nozzi
sebnozzi at gmail.com
Wed Oct 10 20:18:05 UTC 2012
Sorry... I seem to have solved it... is this the correct way? Thanks again!
renderDatePickerOn: html
html div id: #datePicker;
script: ((html jQuery: #datePicker) datepicker
onSelect: (html jQuery ajax
callback: [:c | Transcript show: c; cr]
value: (html jQuery: #datePicker) datepicker getDate))
El 10/10/2012, a las 21:48, Sebastian Nozzi escribió:
> Hello Seasiders,
>
> I am kind of lost here. I would like to have a jQuery datepicker, not attached to an input-field like in the demos but instead inside a div. On selection I would like to know, on the Smalltalk side, about the value and trigger a response. The code I have is like this:
>
> renderDatePickerOn: html
> html div
> id: #datePicker;
> script: (html jQuery new datepicker
> onSelect: (html jQuery ajax callback: [ :c | ... ] value: (html jQuery: #datePicker) serialize)).
>
> Any ideas? :-)
>
> Thanks a lot,
>
> Sebastian
More information about the seaside
mailing list