Re: hey everyone
"Mark Space" <markspace@sbc.global.net> wrote in message
news:ReeMh.267$YL5.225@newssvr29.news.prodigy.net...
Oliver Wong wrote:
<ashq.3012@gmail.com> wrote in message
news:1174484476.187825.134830@e65g2000hsc.googlegroups.com...
Hi,
I'm trying to develop an online chatting system, i'm almost done with
the front end, but am having probs connecting the html pages with the
servlet.
Please be more specific. For example, ask a specific question, and
you're more likely to get a specific answer.
and since it's a chatting system, i need to add contents to
the webpage without refreshing it, which i'm not able to do.
Learn "AJAX".
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