Ajax Mistakes

If you haven’t read it here it is Ajax Mistakes

The important point, that we MUST take note.

When calling for a Document, Page, etc. Its best to use a URL (A unique Identifier for that document). Its the way the web is structured. Try using Apache’s mod_rewrite to make the URL readable. DO NOT FETCH SUCH DOCUMENTS WITH AJAX.

The standard GET request is structured in such a way that if you are opening the same page, document again. The browser may not waste the bandwidth at all. Unlike AJAX. The browser could simply display from the cache.

See: Conditional GET Request

AJAX can conditionally use GET, but what would it display, it cant get the data directly from the cache of the browser.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: