Jump to content

ajax adv and disadv?


radha1

Recommended Posts

AJAX runs in the background, meaning a user can interact with a document while information is being exchanged with your server. Data can be exchanged without forcing a new page to load, which means that "state" can be preserved. You would think it was stupid if your desktop word processing software had to relaunch just so you could save your document. But that is (almost) what traditional form submission forces users to do when they interact with a server.AJAX lets you download dynamic XML data into JavaScript and manipulate it using DOM methods (that is, you don't have to parse it yourself as a big whopping string). For some applications, this can be very convenient.AJAX seems to be difficult for many people to learn, especially if they are learning JavaScript at the same time. But once you have learned it, the complexity disappears. YMMV.The biggest disadvantage is that some users may have JavaScript disabled, so they have no access to AJAX. For some pages, this might mean creating alternatives to AJAX, like traditional form submission. More complex applications may simply be unavailable to users without JavaScript. It's a choice you have to make.

Link to comment
Share on other sites

Another possible downside to using AJAX is that it may make it difficult or impossible to bookmark specific pages that contain the result of an AJAX call. I don't consider this to be a fatal flaw, but in some instances it can be a limitation. For example, some programmers won't use AJAX to return the results of a search page because search pages are often bookmarked. (And that's why search pages often send the search term(s) via GET instead of POST, because you normally can't bookmark the result of a POST result.)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...