|
|
Registered tutorials: 501 Registered Users: 36172
|
|
Rating: 2 out of 1 votes cast
Category: Ajax and Java
|
Developing AJAX Applications the Easy Way by Joe Walker
Abstract: This article demonstrates the use of DWR to create a multi-user web-based chat site. It demonstrates how simple it is to integrate JavaScript in the web browser with Java on the server.
AJAX is the
buzzword of the moment among web developers, so much so that you
could be sick of introductions to AJAX by now (if that's the case,
skip down to "The Chat Web Page"). AJAX is
a technology that is hotly debated from many angles, but it has
stuck because it encapsulates something that is new from a user's
perspective. The functionally that is newly available to all web
users is "in-page replacement": the ability for a web page to
change using data from a web server without totally redrawing
itself. This functionality has been around in Mozilla and Internet
Explorer for a while, but it is only recently that Safari and
Konqueror users have been able to join in.
It is this ability to have web pages that update dynamically
that is changing the way users interact with the web. For
example:
| Activity |
Old Style |
AJAX Style |
| Scrolling in a mapping website |
Click on a right arrow to refresh whole page. |
Drag map area to the right--and watch the map scroll, like
Google Maps. |
| Looking up a word in a dictionary |
Enter the word, and click Submit to see a definition for that
word. |
Begin typing the word, see possible matches as you type and the
definitions as soon as you finish typing, like ObjectGraph
Dictionary. |
| Interacting in online forum |
Type message, click Submit, regularly click "check new
messages". |
Type messages, and wait as new replies appear automatically
without needing your interaction. We will create a site like this
in this article. |
| Filling out form with a number of fields |
Visit a number of pages of a "wizard," getting error messages
about invalid fields. |
Fill out a form that reports on errors as you type, and
can dynamically add data (like filling in full address details from
a zip code) without needing a slow page refresh. |
AJAX isn't the best acronym in the world: it stands for
Asynchronous JavaScript and XML. This does nothing to
describe the benefits to a user: the technology behind it does not
have to be asynchronous, and the best implementations don't
necessarily use XML, either. However, the buzzword has stuck so we
are better off going with the flow now.
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
411 |
| Unique Hits: |
354 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
0.4 |
0.5 |
2.3 |
2.8 |
6.9 |
8.5 |
| Current |
0 |
0 |
4 |
5 |
19 |
23 |
| Previous |
1 |
2 |
0 |
0 |
17 |
20 |
| Jan 23 |
0 |
0 |
5 |
6 |
11 |
14 |
| Jan 22 |
0 |
0 |
7 |
8 |
6 |
9 |
| Jan 21 |
0 |
0 |
0 |
0 |
4 |
5 |
| Jan 20 |
1 |
1 |
5 |
6 |
3 |
4 |
| Jan 19 |
1 |
1 |
0 |
0 |
4 |
4 |
| Jan 18 |
1 |
1 |
0 |
0 |
2 |
3 |
| Jan 17 |
0 |
0 |
0 |
0 |
0 |
0 |
| Jan 16 |
0 |
0 |
2 |
3 |
3 |
3 |
| Highest |
10 |
10 |
27 |
27 |
54 |
61 |
|
|
|
Script Execution Time: 1.50086 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|