This article will try to shed some light on what
Logic Behind
· At the heart of the
· This is nothing more than some JavaScript code that instantiates and uses the XMLHttpRequest object.
· This is a JavaScript object that allows sending, receiving and processing HTTP requests to and from the server without refreshing the entire page.
· In AJAX-powered applications, HTTP requests for data can be made completely in the background, without the user experiencing any interruptions. The XMLHttpRequest object was implemented as an ActiveX object in Internet Explorer, and has later become a native JavaScript object in most modern browsers (FireFox, Safari).
· Although adding an extra layer to any kind of model should add to the response time, this is an exception.
· Through the use of this new layer – the
Why use
· Building a web application that employs
· The decision whether an application would benefit from using
· Here are a few hints to help you take the right decision.
The Benefits of
To help you decide whether
More Responsive | The interface is much more responsive, as only a small part of the page is transferred at a time. |
Multiple Connection Threads | · In a classic web application, when the web server sends a web page to the browser, it can use multiple connection threads to speed up delivery. · However, this happens for content only – what is between the <body> tags. All script and CSS files linked in the page's <head> section are transferred using only one connection thread, which diminishes performance. · With |
Waiting time is reduced | Waiting time is reduced – the user can still work while the data is being submitted |
Fails graciously | · If a page section encounters an error, other sections are not affected and the data already entered by the user is not lost. This way, the application fails graciously, without causing head-aches for the users. |
Traffic is reduced | · Traffic is reduced considerably – The bandwidth usage is most likely to decrease. |
The Disadvantages of
As with most new web development techniques,
Increase in development time and costs | · It is usually considered more difficult than building a classic web application, because of the mixture of technologies and the special concern about everything going smoothly. However, because it is dealing with relatively known technologies, |
Available frameworks and components still need to completely mature | · Although |
Security and user privacy | · Not all concerns regarding security and user privacy have been answered. This fueled a wave of criticism about how safe is the |
Existing page conflicts – Back button | · Using |
Google cannot index it | · |
Support for JavaScript or the XMLHttpRequest object | · The biggest concern with |
Multi Server | · The last disadvantage lies in the actual XMLHttpRequest object itself. Due to security constraints, you can only use it to access information from the host that served the initial page. If you need to display information from another server, it is not possible within the |
Regards,
Arun Manglick || Technical Leader || Monetrics - MDE || 620
No comments:
Post a Comment