[Seaside] Re: Jquery select then hide

Bob Arning arning315 at comcast.net
Mon Apr 27 10:24:53 UTC 2015

no. if you put halts in the places shown below

             s1 := html jQuery ajax
                 serialize: html jQuery this;

                 script: [ :s |
*self halt.*
                     choiceMade = 'miss'
                         ifTrue: [s << (s jQuery: #maiden) show]
                         ifFalse: [s << (s jQuery: #maiden) hide]

             html select
                 list: #('mr' 'ms' 'miss');
                 onChange: s1;
                 callback: [ :value |
*self halt.*
                     choiceMade := value.
                 selected: nil.

you'll see that the callback: happens before the script: because 
WACallbackRegistry has sorted the callbacks by priority before running them.

On 4/27/15 4:50 AM, Hilaire wrote:
> do I have the risk the script is fired before the serialize is terminated?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150427/e24b24d0/attachment.htm

More information about the seaside mailing list