>>> Hi,
>>> I'm trying to develop an online chatting system, i'm almost done with
[quoted text clipped - 11 lines]
> AJAX would be good, but it just uses Javascript, right? So Javascript
> might be another starting point.
Right. AJAX stands for Asynchronous Javascript And Xml. So I had
intended by my advice of "Learn 'AJAX'" to mean "Learn all the
pre-requisits for AJAX (and their pre-requisits recursively), and then
learn AJAX itself proper."
> Basically, to add contents to the webpage, the Javascript has to wake up
> and do a "reload" for the user, so they don't have to manually click a
> button or something. AJAX has libraries to make this easier, but you
> might want to learn a bit about the underlying Javascript first.
With AJAX, it's a bit smoother than triggering a reload automatically
via JavaScript (which might cause the browser to render the main content
pane as completely white while it fetches the new page to display via
HTTP). Typically, an AJAX script will directly manipulate the DOM tree of
the XHTML, so as to add new nodes representing new chat messages, for
example. Data transfer via the HTTP protocol *is* occurring, but no reload
occurs, and so bandwidth usage is reduced, and the browser can avoid
re-rendering the whole page, and instead only re-render the portions which
changed.
- Oliver