wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes What are the benefits of AJAX ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What are the benefits of AJAX ?" Watch "What are the benefits of AJAX ?" New topic
Author

What are the benefits of AJAX ?

Jithesh Kozhipurath
Ranch Hand

Joined: Aug 27, 2003
Posts: 76
I would like to know what are the possible advantages we get by using AJAX. Certainly there is a performance benefit. But other than that there are many disadvantages like, security a major threat, then the issue of using back button or using a forward after giving a XML request. Is there any ways in which we can avoid such problems? Then, a JavaScript is always exposed to the clients, so is there any possibility to hide the xml access code from the client. Please clarify if there is any possible solution to overcome these issues.

Thanks in advance,

Regards,
Jithesh


Jithesh K
Eduardo Luttner
Greenhorn

Joined: Jul 21, 2004
Posts: 3
The browser sends the requests using the same header as it would do for a normal request.

If the page that will be returned by the ajax request must pass by a session verification, it will send the session id through the kookies header.

This will prevent access to unauthorized pages.

The ajax response is like any server side response, and should be configured to be NOT cached and can also be a HTTPS page if needed.

Regarding the back/forward button, the request is added by javascript to the current page, so all the content returned by the ajax request exists only in the current page, as javascript variables.

I hope this can clarify you about the ajax.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What are the benefits of AJAX ?
 
Similar Threads
Export to xls file - Download file using AJAX
To AJax Junkie: Brett McLaughlin
Asynchronous JavaScript and XML as client side Presentation
Can we use Ajax only with JSP's?
AJAX engine