[Seaside] Re: onClick: plus callback:

Paul DeBruicker pdebruic at gmail.com
Mon Nov 10 16:12:14 UTC 2014


Hi Bob,

Using the #onAjaxStart: & #onAjaxStop: setting as discussed here:
http://forum.world.st/JQAutocomplete-and-onAjaxStart-td4787505.html to
trigger the busy spinner may fix your issue because it would wait for the
request to be sent from the client to start the spinner, rather than the
click.




Paul




Bob Nemec wrote
> We like to show a 'busy' spinner image when a user clicks on a link.
> Years ago we added code like this...
> 
> ...
>>onClick: ((canvas jQuery id: 'busy') show: 0.3 seconds);
>>callback: [some action]
>>...
> 
> ...which works fine, except that sometimes the onClick: action gets
> triggered without the callback: 
> The user then sees the 'busy' image, but the view does not change. They
> think the system has locked up.
> I've tried various ajax / onSuccess: mixes, but nothing works exactly
> right.
> 
> What would be a good way to ensure that 'busy' is shown only if the
> callback: block is triggered?
> 
> Thanks for any help,
> 
> Bob Nemec
> HTS
> _______________________________________________
> seaside mailing list

> seaside at .squeakfoundation

> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside





--
View this message in context: http://forum.world.st/onClick-plus-callback-tp4789445p4789502.html
Sent from the Seaside General mailing list archive at Nabble.com.


More information about the seaside mailing list