Login  Register

Re: Aida and WebWidget

Posted by Søren skogstad nielsen on Feb 25, 2015; 12:02pm
URL: https://forum.world.st/Aida-and-WebWidget-tp4806737p4807517.html

Hi Hilaire
A short note concerning the archetecture of my PicturesInYourHead app.
In interactive fiction the story unfolds depending on the activity of the reader, the reader 'reads', then decides for some response and the next section of text
is presented depending of this response.
In the PicturesInYourHead app. The server may respond on
one Textual channel, two sound channels and three image channels.
The channels may be updated each time the user responds.
Furthermore the authoring platform makes it possible to set up delayed action events on server side.
When such an event occurs one or more channels may have to be updated too.
-------
I knew Smalltalk but had no knowledge of  Server or Web architecture, HTML or CSS.
But studying the AIDA architecture and bolts and nuts - ' How is this happening?', 'Can I copy this trick?'  i ended up with
the following architecture of the client server interface:
--------
1 Sound channels
The server maintains two queues of soundfiles to play.
Whenever the client observes it has no sound to play/playing it asks the server to deliver one.
This request is set up through a timer controlled ajax (soundhandling itself needed javascript, was not that simple)
I could not use a page refresh, because ongoing playing sounds was then disturbed, (repeated/ truncated/stopped).
2 Image channels
The server will update each channel at each reader response if needed.
I use an Ajax construct for that, so only the Image page elements are updated
because a page refresh would disturb an ongoing sound.
3 Textual channels
This channel is updated through ajax too, to just change this channels element on the page.
4 Delayed events on server side.
This is actually 'COMET' architecture i suppose.
A timed request is repeatedly sent to the server from the client.
And if a delayed event has happened, the server will ask the channels to update the client.

Here is a link to the non web parts of the platform (Warning everything is in danish) ;-)
http://picturesinyourhead.vpweb.dk/
many regards
Søren

Den tirsdag den 24. februar 2015 kl. 21.49.53 UTC+1 skrev Hilaire:
Hi Søren

Thanks for the interests. When I'll find out interesting stuff, I will
continue to write notes then.

As Janko, I am curious about your web application.
I am also curious to read from other, what are you doing with Aida? It
could lead to interesting exchanges and discussion.

Thanks

Hilaire

Le 24/02/2015 10:50, Søren Skogstad Nielsen a écrit :

> Hi Hilaire...
> I read it.
> If you, hopefully, continue to document your journey in AIDA.
> It would have been very good for me to study, when I started my own
> journey for nearly two years ago.
> And now have a working App.
> (The App is a platform for Interactive fiction with integrated sounds,
> and pictures where the server for  runs a Dolphin Smalltalk image)
> AIDA is a tool with so many fine things for a Smalltalker going to the
> web.
> So more tutorial material from a newcomer to AIDA like that, you have
> started, would be very helpfull for everybody.
> And your blog layout is just so nice !
>
> Regards
>
> The world is just one big friendly surprise-
> Søren Skogstad Nielsen
> tlf: 50994638
>



--
Dr. Geo - <a href="http://drgeo.eu" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdrgeo.eu\46sa\75D\46sntz\0751\46usg\75AFQjCNHXTbMMx0pReG44OSxWCMHO-Y7z_w';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdrgeo.eu\46sa\75D\46sntz\0751\46usg\75AFQjCNHXTbMMx0pReG44OSxWCMHO-Y7z_w';return true;">http://drgeo.eu
iStoa - <a href="http://istoa.drgeo.eu" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fistoa.drgeo.eu\46sa\75D\46sntz\0751\46usg\75AFQjCNHSRSYPtRziafCAjNiebjeiCauCrQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fistoa.drgeo.eu\46sa\75D\46sntz\0751\46usg\75AFQjCNHSRSYPtRziafCAjNiebjeiCauCrQ';return true;">http://istoa.drgeo.eu


_______________________________________________
Aida mailing list
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Bo6D5SNG8zAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">Ai...@...
<a href="http://lists.aidaweb.si/mailman/listinfo/aida" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Flists.aidaweb.si%2Fmailman%2Flistinfo%2Faida\46sa\75D\46sntz\0751\46usg\75AFQjCNGk3YgRsV8bNoYV6JRUWKM_c4_wIg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Flists.aidaweb.si%2Fmailman%2Flistinfo%2Faida\46sa\75D\46sntz\0751\46usg\75AFQjCNGk3YgRsV8bNoYV6JRUWKM_c4_wIg';return true;">http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida