[Seaside] Re: Concurrent requests from multiple sessions

wilwarin Ondrej.Altman at seznam.cz
Wed Mar 11 06:36:03 UTC 2015


Hi Bob,

> BTW, did you include some code in your message? I didn't see any if you
> did.

yes I did. Sorry, I made it a raw text and didn't know somebody won't be
able to see it. Let me share the code once more (no DB call inside):

1) getResult

	| result |
	
	startTime := Time now asString.
	result := "<DO SOME MATH>".
	finishTime := Time now asString.
	
	^ result.

2) renderContentOn: html

	html div: [
		html anchor
			callback: [ self getResult. ];
			with: 'Click me!'.
	].
	
	html div: 'Start: ', startTime.
	html div: 'Finish: ', finishTime.

Guys, I really appreciate ideas you share. Thank you.

Cheers.
Ondrej



--
View this message in context: http://forum.world.st/Concurrent-requests-from-multiple-sessions-tp4809929p4811143.html
Sent from the Seaside General mailing list archive at Nabble.com.


More information about the seaside mailing list