[solved] Re: [Seaside] order a refresh page (in a callback)

Benoît Delmotte benoit.delmotte at gmail.com
Wed May 26 21:05:03 UTC 2010


Hello dear list !

Finally, I've solved the problem by using a html anchor with the same
callback, but it works
thanks for your help.

2010/5/25 Robert Sirois <watchlala at hotmail.com>

>  The expected action being a reload? The in-place editor is an ajax
> component, so the idea is that it doesn't reload the page ;) I believe
> hitting enter in the field submits the request (which is gonna be the
> #triggerInPlaceEditor: block I think), and then it will render the new value
> from the text field.
>
> If you really want a page reload, it might be easier to create another
> event like #onBlur: or associate a button.
>
> RS
>
> ------------------------------
> Date: Tue, 25 May 2010 10:56:12 +0200
> Subject: Re: [Seaside] order a refresh page (in a callback)
> From: benoit.delmotte at gmail.com
> To: seaside at lists.squeakfoundation.org
>
>
> 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 list
> seaside at lists.squeakfoundation.org
> http://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
>
>
>
> ------------------------------
> The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
> Hotmail. Get busy.<http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5>
>
> _______________________________________________
> 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/20100526/26aaafb8/attachment.htm


More information about the seaside mailing list