[Q] Ordering Effect and Updater

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Q] Ordering Effect and Updater

Chun, Sungjin
Hi,

My code snipper is this;

canvas submitButton
        onClick: (canvas effect
                                id: 'kGoogle';
                                highlight;
                                onBeforeStart: (canvas updater
                                        id: 'kGoogle';
                                        triggerForm: 'searchForm';
                                        callback: [ :r | self searchWeb. r render: [ self renderResultsOn: r]]);
                                return: false);
        text: 'Search'.

What I want is this, after search results are updated to kGoogle div, then kGoogle should
be highlighted. Current (above) code does not do that. It just highlights kGoogle div, as
soon as search results is sent.

Thanks in advance.




_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [Q] Ordering Effect and Updater

Lukas Renggli
> canvas submitButton
>        onClick: (canvas effect
>                                id: 'kGoogle';
>                                highlight;
>                                onBeforeStart: (canvas updater
>                                        id: 'kGoogle';
>                                        triggerForm: 'searchForm';
>                                        callback: [ :r | self searchWeb. r render: [ self renderResultsOn: r]]);
>                                return: false);
>        text: 'Search'.

Use one of the events in SUUpdater (actually see its superclass
SUAjax). I think it is called #onComplete:, but I am not entirely sure
and I cannot check ...

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: [Q] Ordering Effect and Updater

Chun, Sungjin
In reply to this post by Chun, Sungjin
 Thank you, it works!!!

Working code snippet is like this;

canvas submitButton
        onClick: (canvas updater
                                id: 'kGoogle';
                                triggerForm: 'searchForm';
                                callback: [ :r | self searchWeb. r render: [self renderResultsOn:r]];
                                onComplete:(canvas effect
                                        id: 'kGoogle';
                                        highlight);
                                return: false);
        text: 'Search'.


----- Original Message -----
   From: Lukas Renggli <[hidden email]>
   To: "\"S.J.Chun\"" <[hidden email]>, Seaside - general discussion <[hidden email]>
   Sent: 07-07-18 04:43:13
   Subject: Re: Re: [Seaside] [Q] Ordering Effect and Updater

  > canvas submitButton
>        onClick: (canvas effect
>                                id: 'kGoogle';
>                                highlight;
>                                onBeforeStart: (canvas updater
>                                        id: 'kGoogle';
>                                        triggerForm: 'searchForm';
>                                        callback: [ :r | self searchWeb. r render: [ self renderResultsOn: r]]);
>                                return: false);
>        text: 'Search'.

Use one of the events in SUUpdater (actually see its superclass
SUAjax). I think it is called #onComplete:, but I am not entirely sure
and I cannot check ...

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside