It is now possible to use http "long polling" and ajax as an alternative to
websockets.

Mine Detector using Ajax:
http://gnoga.com:8081/ajax.html

Snake using Ajax (works but not smooth enough to play):
http://gnoga.com:8080/ajax.html

Chattanooga using Ajax over https:
https://chat.gnoga.com/ajax.html

(The gnoga.com site needs some more changes first, but coming due to the
way I use the '#' tags)

To make ajax the default method use:
Add to your initialize the parameter boot => "ajax.html" to do so.

Note you will need to copy ajax.js to your js directory and ajax.html to
your html directory of your project.

All modern browsers support websockets, however older corporate firewalls
do not.

I do not recommend using this method for most application development as it
is slightly less responsive and leaves your browser's loading icon spinning
which may annoy some users. It is intended as a fallback method or to use
for website development using a method somewhat like the AdaBlog demo where
you use a more traditional web paradigm of stateless connectivity using
local storage or other techniques to maintain state between pages. I will
document more of that as we get closer to 1.1 in the coming weeks.

With this addition and a few other small additions, this will make Gnoga
not only the best UI for most modern Ada applications, it also makes it the
best choice for developing websites using Ada.

David Botton
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to