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 |
> 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 |
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 |
Free forum by Nabble | Edit this page |