Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

hey everyone

Thread view: 
ashq.3012@gmail.com - 21 Mar 2007 14:41 GMT
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. 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.
could any one plz help me out
Oliver Wong - 21 Mar 2007 18:04 GMT
> 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".

   - Oliver
Mark Space - 21 Mar 2007 18:49 GMT
>> Hi,
>> I'm trying to develop an online chatting system, i'm almost done with
[quoted text clipped - 10 lines]
>
>     - Oliver

AJAX would be good, but it just uses Javascript, right?  So Javascript
might be another starting point.

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.
Oliver Wong - 21 Mar 2007 20:28 GMT
>>> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.