• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What are the benefits of AJAX ?

 
Jithesh Kozhipurath
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eduardo Luttner
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic