[Seaside] Update a component after a Jquery

Johan Brichau johan at inceptive.be
Sun May 31 09:55:50 UTC 2015

To trigger a full page refresh from a script:

html javascript refresh

So, if you want to do a full page request when selecting a date in the date picker:

html textInput
           value: '1/1/2015';
           callback: [ :value | self addMonth: value asDate asMonth];
           script: (html jQuery new datepicker onSelect: html jQuery
ajax serializeThis; onComplete: (html javascript refresh)).


> On 29 May 2015, at 22:11, Hilaire <hilaire at drgeo.eu> wrote:
> Le 29/05/2015 03:40, Paul DeBruicker a écrit :
>> mail client coding but something like this should work:
>> (html jQuery new datepicker onSelect: (html jQuery
>> ajax serializeThis;onSuccess:((html jQuery id: 'myTableContainerId') load
>> html: [:h | h render: myTable])).
> Thanks. I am not sure I can apply it.
> The change in the model results in a new div element, containing a table
> populated with content. Moreover depending on the imputed date, the div
> element position may vary in the DOM tree. I think a whole refresh,
> server side, may be simpler.
> Hilaire
> -- 
> Dr. Geo
> http://drgeo.eu
> http://google.com/+DrgeoEu
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list