| 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
|
|
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
|
 |
 |
|
|
subject: How does AJAX increases performance
|
|
|