[Seaside] Showing progress
Cyril Ferlicot D.
cyril.ferlicot at gmail.com
Fri Mar 3 08:39:13 UTC 2017
On 03/03/2017 03:54, Jupiter Jones wrote:
> Hi all,
>
> I have a relatively short process (about 5 to 10 seconds) that I would like to show the progress of.
>
> It’s triggered by ajax:
>
> html button
> bePush;
> onClick:
> (html jQuery ajax script: [ :s | self fetchShowingProgressOnScript: s ]);
>
> fetchShowingProgressOnScript: s
>
> s << (s jQuery id: ‘progress')
> html: [ :r | r paragraph: 'Connecting to Downer...' ].
> integration connect.
> s << (s jQuery id: ‘progress')
> html: [ :r | r paragraph: 'Logging In...' ].
> integration login.
> s << (s jQuery id: ‘progress')
> html: [ :r | r paragraph: 'Looking up ' , self idToFetch ].
> integration find: self idToFetch..
> s << (s jQuery id: ‘progress') html: [ :r | r paragraph: 'Done.' ].
> integration quit
>
> However this won’t work because the script will not be returned to the browser until the method completes.
>
> What’s the recommended way of going about this? Can you push a partial result without a streaming server?
>
> Is there a way of doing this without some kind of polling loop and running the long operation in a separate thread?
>
> Cheers,
>
> Jupiter
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
Hi!
I did not try it but I remember seeing a tuto on progress bar:
http://pillarhub.pharocloud.com/hub/mikefilonov/ajaxupdateseaside
I hope it can help you :)
--
Cyril Ferlicot
http://www.synectique.eu
2 rue Jacques Prévert 01,
59650 Villeneuve d'ascq France
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20170303/2d240e98/attachment.sig>
More information about the seaside
mailing list