• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What are the benefits of AJAX ?

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic