Re: Non-blocking jQuery load

jtuchel <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
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:[email protected]
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.

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.