wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax Technology Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax Technology " Watch "Ajax Technology " New topic
Author

Ajax Technology

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
There are many disadvantages with Ajax ...
Even if we use Google maps it takes a lot of bandwidth ..andtakes more time to get the respose from the server..
and it is better to follow the old GIF files for google maps
Yes, it is a mixture of dhtml,javascript but i dont think it is much useful to use it in j2ee applications and .net tooo.
Ajax is used in more specific applications...
not useful in all areas...
Dear author (Christian Gross )
what do u say now
am i right

regards
cinux


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I also need some strong arguments to convince me.
I must be overwhelmed by the new thinking process.


[My Blog]
All roads lead to JavaRanch
Christian Gross
Author
Ranch Hand

Joined: Feb 20, 2006
Posts: 85
Regarding the disadvantages to Ajax:

Bandwidth: Myth! Ajax does not take more or less bandwidth than traditional applications. Google Maps does because it is a broadband Ajax example. The pattern samples I created are very lightweight and use little bandwidth. Also realize that Ajax will use HTTP 1.1, and inline HTTP requests thus not requiring extra connections.

Why use the old GIF images? Is it to save them to the hard disk? Yes it is harder to save the images because they are smaller, but most applications have a printer mode that creates a single image.

Ajax is absolutely useful to use in a J2EE. Since you are using J2EE I suppose you are hearing about SOA? http://en.wikipedia.org/wiki/Service-oriented_architecture

"Most definitions of SOA identify the use of Web services (i.e. using SOAP or REST) in its implementation. ... Unlike traditional point-to-point architectures, SOAs comprise loosely coupled, highly interoperable application services."

Something has to consume the SOA's and that is Ajax. So your argument for J2EE is an argument FOR Ajax.

Where I will agree with you is that Ajax cannot be used everywhere, but it can be used in a large number places!

OK?

Satou: No you are not overwhelmed... You have actual work to do, and actual applications to get working. You have other concerns! Wait until Friday as I will be creating a compliation of the questions and posting them on my blog. Maybe that will help.


Author of Ajax Patterns and Best Practices
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Thank you. I'm looking forward to reading your post.
I'll try to make some samples as soon as I can.
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Hi, Christian Gross

so ur saying that there are many advantages with Ajax regarding bandwidth issue,using over pretty old Gif image files..

But u told that this technology is used in various places..
But as per me i had seen only 2 places..
like google maps and banners like news and ads..

regards
cinux
Liyaquat Ali
Ranch Hand

Joined: Nov 16, 2005
Posts: 156
IMHO,

If you have seen only 2 applications of Ajax then you need to look further and also realize that all that YOU see is not the actual/entire/complete universe.

We normally see applications that we come across, the Ajax applications I use everyday are GMail, Google Maps, Google Talk, I don�t know how many other google apps have been developed using Ajax.

Using Google Mail vis a vis Yahoo Mail itself demonstrates the benefits of using Ajax, and Google Talk is an amazing example as well.

Yahoo News uses ajax as well, just click on any of the links within a news article, these are some of the things that I have come across which came to my mind right now, I am sure there are many more (out there in the entire Universe ).

This technology has just entered the market and people are still debating how/why/if/should/when to implement and incorporate it into there apps.

The real applications of this technology will not be visible on the web so much as in Enterprise applications, used within organizations, these will start appearing slowly as development time for such applications is longer. Enterprise applications that currently use Active X or Swing/Applets on the client side are good candidates for switch over to Ajax (info on why/how/if for this is available elsewhere on this board)

Everybody can implement Ajax in a small way right away for a couple of pages or processes, example, display search results on the same page after making a Ajax request. These things are easy to do, the real challenge and power of Ajax can only be unleashed by using them on an application level, which requires reworking the architecture of the project, projects which are already under development might not be able to do this switch but the new projects being designed by smart System Architects and designers will definitely see Ajax playing a big role. I foresee these 'smart' project managers will definitely learn what they need to know, patterns in particular, from Chris's book (Ajax patterns and Best Practices : Christian Gross)

[ February 23, 2006: Message edited by: Liyaquat Ali ]
[ February 23, 2006: Message edited by: Liyaquat Ali ]

Excuse me while I kiss the sky (Jimi Hendrix)
Liyaquat Ali
Ranch Hand

Joined: Nov 16, 2005
Posts: 156
Hi Chris,
I M looking forward for the complied questions and answers as well.

The set of questions and answers on Ajax from 21st till now on this forum are very informative for anyone planning to implement Ajax.
Ning Yap
Greenhorn

Joined: Feb 27, 2006
Posts: 6
There is one thing that keep stopping me from using javascript for ajax or even a more interactive webpage. For example, everytime I try to use javascript to dynamically add Text/String on the select box or into the html table on the screen, my Colleague keep advice me not to implement it for reason that javascript may not work or may cause problem when dealing with a certain encoding or multibyte characters.

Furthermore, what if javascript is used to retrieve/use the value keyed-in by the user from text box or textarea, will there be any problem if the user keyed-in multibyte characters?

Do I need to concern about certain multibyte characters which may one day caused problem on Javascript that will force me to eventually drop my whole interactive/ajax webpage design?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Ning ,

The XNLHttpRequest is the same as a normal form submission. You have to make sure that the character encoding is set correctly.

Eric
Ning Yap
Greenhorn

Joined: Feb 27, 2006
Posts: 6
1. javascript stands in between the server and client browser :
1a. User Keyed-in (data) on the HTML Form -> Javascript -> submit (data) to Server through normal form submission or Ajax
1b. Server response (data) to browser -> Javascript -> dynamically update the webpage with (data)

2. Javascript stands in between the User and client browser.
2a. User clicked on Add button -> Javascript -> new row of table containing selectbox with (data), text fields and labels are dynamically created.

My concern is whether javascript is able to handle without any problem when all the (data) mentioned above is in all kinds of multibyte encoding characters?

Because, the answer may help me to decide whether
1. to use javascript to build a more interactive webpage without the need of primitively refreshing the whole webpage whenever a certain contents of the webpage needed to be changed with/without multibyte characters, or
2. to use quite lot of inner frames which I am currently used involving a number of complexity. I was caught in this design when my Colleague asked me to design webpages without refreshing the entire webpage as much as possible to minimize the data transfer and also without using a certain javascript such as ajax/innerHTML/etc that would somehow caused problem when interacting with multibyte string.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The simple idea for you is build a small prototype and see what happens.

Have a text field, post the data to the server and have the server return the data and display it in another field or div.

You do not have to build a large application and see if it works. Start small and you can test the basics.

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
then after you do that and see that it fails, take a look at this article showing you how it can be done:

http://www.taylanpince.com/blog/AJAX-and-Multibyte-Character-Support.html

Eric
Ning Yap
Greenhorn

Joined: Feb 27, 2006
Posts: 6
Hi, thanks for the reply. Anyway, I had tested before using multibyte encoding characters on Ajax, however, the characters I tried is just a very small portion of the whole Universe of multibyte encoding characters that would possibly exist or entered on the webpages.

Because of that, the tests did not convinced my Colleague that javascript can handle the whole Universe of multibyte encoding characters, meaning there will somehow be certain or even alot of multibyte characters that cannot be handled by javascript (which I yet to see one).

So is there anyway to confirm/test the whole Universe of multibyte encoding characters on Javascript? Because if I am already developed all my webpages based on design 1 (javascript/ajax to build a more interactive webpage) from my previous Post, if something would go wrong on that design 1, the efforts and resources used will be even TITANIC to change back to design 2 (inner frames).
Ning Yap
Greenhorn

Joined: Feb 27, 2006
Posts: 6
I think my previous Post question should direct to Javascript in general not specific to Ajax only. I will create new Topic for my question in this HTML and Javascript forum. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax Technology
 
Similar Threads
Google Maps in a java application
Servlet to applet communication
Scopes for prototype & scriptaculous
GWT for complex apps or does it work well on small apps also
Which browser do you use?