[Seaside] Re: Non-blocking jQuery load

jtuchel jtuchel at objektfabrik.de
Fri Nov 20 09:07:59 UTC 2015


Johan,

thanks a lot for this idea and code draft. It is of course exactly what 
I need.

Given that we use that background process thing at another place (show a 
progress dialog for a long running process), it is sad but trrue I 
didn't think of the same technique for this purpose. But of course this 
is the perfect thing to do. Thus the Ajax's will be short running and 
the browser won't wait for the data. Definitely worth it.

Once again: thanks a lot for your guidance and help! I still hope one 
day I can give something back.

Maybe a drink in Prague at ESUG 2016 counts as a first attempt? ;-)

Joachim



Am 20.11.15 um 09:52 schrieb Johan Brichau-2 [via Smalltalk]:
>
>> On 20 Nov 2015, at 09:57, Johan Brichau <[hidden email] 
>> </user/SendEmail.jtp?type=node&node=4862164&i=0>> wrote:
>>
>> This perfectly fits your decoration implementation. Something along 
>> these lines (disclaimer: untested code written in email client :) :
>
> The code I sent before will poll a bit too quickly :) I forgot to add 
> a wait on the client:
>
>
> replaced
> ifTrue: [div with: [self renderNextOn: html]]
> ifFalse: [
> html document addLoadScript: (self loadScriptOn: html).
> div with: [
> html image src: someSpinnerImage
> html space; text: self message]]
>
> loadScriptOn: html
>
> (html jQuery: self idSelector) load html: [:r |
> self isDataReady
> ifTrue:[ replaced := true.
>   self renderNextOn: html]
> ifFalse: [ r addLoadScript: ((self loadScriptOn: r) timeout: 1000) ]).
>
>
> _______________________________________________
> seaside mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=4862164&i=1>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://forum.world.st/Non-blocking-jQuery-load-tp4861881p4862164.html
> To unsubscribe from Non-blocking jQuery load, click here 
> <http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4861881&code=anR1Y2hlbEBvYmpla3RmYWJyaWsuZGV8NDg2MTg4MXwxNjg2NTg4NDEw>.
> NAML 
> <http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> 
>


-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          mailto:jtuchel at objektfabrik.de
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1





--
View this message in context: http://forum.world.st/Non-blocking-jQuery-load-tp4861881p4862167.html
Sent from the Seaside General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20151120/a1b0e253/attachment-0001.htm


More information about the seaside mailing list