• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Ajax Technology

 
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also need some strong arguments to convince me.
I must be overwhelmed by the new thinking process.
 
Author
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Liyaquat Ali
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Water! People swim in water! Even tiny ads swim in water:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic