Re: Showing progress
"Cyril Ferlicot D." <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
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 > [email protected] > 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 _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJYuSu0AAoJEBzpUtxBqUIDOHAP/3fuVIBhubfK4lTpZ0ShCa5k DI/RH2uTbUSgUfaa3HtJ61olUjDKx1BmZ1LzuFN9afF7gjUg+Dm5ow8T1fllEovS G6gJCYd9wvNjT2Ch0V2j2paCu6U8wjlUhGjJe633NKxj76lmuDUpdw3c4Zi9yv4/ llKMFVAGi1eGoj5tSjvmoEz6MgVwhLV/ZfeUOQe8GzSQ3+6j9vxLlMgbNbmw4SAj 8OP9xapQZ3gUSXxnhA2jEL2ozzFWUv4aJWuKLZevMVvK9yW1E0mvfp2iDPfCcjzi ncuG8AoH7raUBHsaFBefRayaObYMbw6Lu+/rmRdqqqP3351+vySEzBjL2dCL2IA/ aAD0UmWQT+gUfLisJPUpm42PQis36GuICGOv6ruLEqfK58ZHuARfHjfD6Z7WItP1 yLJwdg3377lYGmuCQMKMQsFU7j1PW6pXhbJ9nWxOILzLhqKg7grjk9Yo0N/D55LA srtHs+5a+wsiaOEhnvg4SCrnH0psGclksazbtkBtqxcch9R6/5CXu007qqAyykAz uG0IZ0ixMW7XTrFuDXTw0CyST/Bq+0fSKefwb7MIjwDgADX9KSXhO5/5xMKEl0U1 CTVMK8gAEZ/44suObaN2q1gR0+DtnhMFWeL5dB6oxpAPuqzQIqGOeL/+Q6SnkS/Q 18q6vKWhSTIFT72/OdqU =KTPr -----END PGP SIGNATURE-----