Jump to content
radha1

ajax adv and disadv?

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.

Share this post


Link to post
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.)

Edited by End User

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...