my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes How does AJAX increases performance Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How does AJAX increases performance" Watch "How does AJAX increases performance" New topic
Author

How does AJAX increases performance

Suresh Bab
Greenhorn

Joined: Nov 30, 2006
Posts: 14
Hi ,

I am a beginner for Ajax. i cannot understand how does Ajax helps in performace ??

From my knowledge, Ajax is like writing a script which talks with the database directly. If i am right, then is it not violating the rule like " Business logic should not be present in presentation layer " and also what about the security ??

Thanks,
Suresh
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

No, you have a few misconceptions. Ajax has nothing to do with databases. At least not directly.

Ajax is a technology for invoking HTTP requests back to the server under script control. Whether you use this ability to violate good web application structure is up to you -- it has nothing to do with the technology.

Ajax can make web applications more performant because it can help eliminate needless full-page refreshes, in which all of a page must be resent and re-rendered in the browser in order to update just a small fragment of it. With Ajax it's possible to make much smaller requests back to the server, as needed, and returning just the updated data.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1318

Originally posted by Suresh Bab:
Ajax is like writing a script which talks with the database directly. If i am right, then is it not violating the rule like "Business logic should not be present in presentation layer"


Hi Suresh,

Bear reply is covered the entire question what you asked. For more help I would like to share some more info (in this thread) about some part of your question.

hope its make you more clear.


Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How does AJAX increases performance
 
Similar Threads
AJAX
call back function
DWR and Jquery Integration
tapestry 5, ajax, javaee and spring
Ajax in Practice: Best practices with Prototype and Scriptaculous