[Seaside] order a refresh page (in a callback)

Benoît Delmotte benoit.delmotte at gmail.com
Tue May 25 08:56:12 UTC 2010


It doesn't do the excepted action

I render BDs by titles or by Series
I use the inPlaceCollectionEditor script:

(aList contains 'serie' and 'title')

                    html span
                         script: (html scriptaculous inPlaceCollectionEditor
                                  collection: aList;
                                 cancelControl: 'button';
                                  triggerInPlaceEditor: [ :value | selected
:= value ];
                               callback: [ :r | r render: selected.
                                        self switchSerieTitle.
                                        html javascript refresh (or other
solution)
                                         ]);
                                 with: selected.

I have an attribute bySerieOrTitle I can change with the switchSerieTitle
method
When it's changed I want the modification of the render immediate, (a manuel
refresh after that do it).
But javascript solutions do nothing visible.



2010/5/25 Karsten <karsten at heeg.de>

>  yeah, every normal callback will make the page refresh.
>
> If you want to refresh the whole page via ajax, you could register a
> callback, like an anchor would do. Then take its url and then submit
> javascript to the webpage like: window.location.href=myURL; That's all a bit
> tricky though.
>
> Karsten
>
>
> Am 25.05.10 10:01, schrieb AxiNat:
>
> I do it as follows:
>
> html anchor callback: []; with: 'refresh me'.
>
> ;)
>
> 2010/5/25 Benoît Delmotte <benoit.delmotte at gmail.com>
>
>> Hello everybody,
>>
>> I just want to know if it's possible to order a refresh, with a special
>> call in a callback
>> (if yes, how)
>>
>> Thanks.
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>
> _______________________________________________
> seaside mailing listseaside at lists.squeakfoundation.orghttp://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> --
> Karsten Kusche - Dipl. Inf. - karsten at heeg.de
> Georg Heeg eK - Köthen
> Handelsregister: Amtsgericht Dortmund A 12812
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100525/7fde16e3/attachment.htm


More information about the seaside mailing list