[Seaside] Re: JQuery-UI Datepicker challenges
Sanjay Minni
sm at planage.com
Mon Feb 2 13:48:01 UTC 2015
Sorry ... a bit of an error , correct code below (earlier I was checking if
the targetDate was nil in the callback
need help as I will be using date fields very heavily
Sanjay Minni wrote
> Hi
>
> I am using JQuery-UI Datepicker (Pharo 4) as follows:
>
> targetDate is a variable of Date class and I need to display in format
> dd/mm/yyyy)
>
> html textInput
> value: ( targetDate isNil ifFalse: [ targetDate printFormat: #(1 2 3 $/ 1
> 1 2) ] );
> callback: [ :value | value isNil
> ifFalse: [
> targetDate := ( Date readFrom: value pattern: 'dd/mm/yyyy' ) ] ];
> script: (html jQuery new datepicker
> dateFormat: 'dd/mm/yy';
> onSelect: ( html jQuery ajax serializeThis ) ) .
>
> I am not finding the behavior very smooth - so overall is the right way to
> use
> Is there a validation available to check if the string entered by the user
> is a valid date - the user may enter only 1 digit for dd and mm unless
> there is a template to ensure leading 0's
>
> are there any other datepicker widgets that could be a good options
>
> thanks
> Sanjay
-----
---
Regards, Sanjay
--
View this message in context: http://forum.world.st/JQuery-UI-Datepicker-challenges-tp4803179p4803226.html
Sent from the Seaside General mailing list archive at Nabble.com.
More information about the seaside
mailing list