views:

67

answers:

2

Hi All,

what are the scenario's where Ajax could not be used in Rails Application. Is there any disadvantages of AJAX (AJAX on RAILS) if yes please mention which are they?

+2  A: 
  • The browser may not be able to interpret javascript, but rails can detect that and you can act accordingly
  • The user cannot back/forward or bookmark a particular state within the page, because it is dynamically generated
  • Search engines cannot index particular states within the page

There may be others that i can't think of right now.

alexcepoi
these are general disadvantages of AJAX, not of its Rails' implementation.
neutrino
A: 

I think the biggest disadvantage of AJAX in general is the desire to use is when it is not needed.

Chris Rittersdorf
If it solves a problem, then use it. Otherwise, don't.
Chris Rittersdorf