Version 5 of Ajax

Updated 2005-09-27 13:21:55 by escargo

Ajax stands here for Asynchronous JavaScript and XML

http://www.adaptivepath.com/publications/essays/archives/000385.php is an pretty informative article on how Ajax works.

Ajax is an Rich Internet Application framework that uses Javascript, but not Flash to achive interactivity at the client.

- Zarutian 7. august 2005


escargo 26 Sep 2005 - Is there infrastructure in place to use Tcl in the same way as Javascript? It seems like Tcl (using the Tcl/Tk Tclet Plugin) could accomplish much the same thing. Would it be necessary to use the XMLHttpRequest object?

It would be nice to be able to demonstrate AJAX-like behavior in Tcl.

schlenk 26 Sep 2005 - With the Tcl Plugin you don't need all the XML mumbo jumbo, just open a socket back to the original server or do some http requests via the http package to get the dynamic info you want.

Doing AJAX with Tcl is a matter of ripping of the JavaScript part for the browser side and doing some XML processing on the server side, be it with Aolserver, Tclhttpd, Rivet or one of the other things. Not too hard to do (I have a XUL based JavaScript app as a Mozilla browser sidebar talking to tclhttpd via Mozillas Javascript SOAP-API, very similar stuff)

(escargo - Could you clarify what you mean by "ripping of the JavaScript part"? Perhaps, "ripping out"? If it is ripping out, do you know what you would replace it with? The XMLHttpRequest object seems to be a JavaScript (or ActiveX) thing. I don't know if we have (or need) an equivalent.)

LES same day: open a socket and leave it open for as long as the browser window is open? For each visitor? Then I suppose a few thousand open sockets could accumulate in just a few minutes if the site is popular enough. I imagine the impact on the server's performance.

schlenk it really depends. Having a socket open would mean the server can push information to the client. Doing HTTP means polling by the client. So just open sockets do no real harm (some small amount of memory), but the limited amount of ports will eventuell hit). As there is no simple way to increase the number of available ports but it is simpler to increase the computing power of the server so it can serve many more empty polling requests its probably the way to go. Especially as most AJAX apps are inherently: user sends data to server and gets update and not something like stock tickers etc. where the server would like to push data. Its more an RPC thing.


See also:


Category Internet