Jump to content

AJAX general question


jimfog
 Share

Recommended Posts

Are the most modern sites of today fully AJAX? I mean, is there anything left(a link maybe) to be done with a conventional(non-AJAX) way?

Link to comment
Share on other sites

Most sites are not AJAX-based. Normal, non-javascript-based websites are very common. While they may rely on Javascript and AJAX to simplify a few things the majority of sites use normal links and a normal structure.

Link to comment
Share on other sites

What functions of a site usually use AJAX and which not?

Link to comment
Share on other sites

That depends on the preference of the site owner. This forum, for example, uses AJAX for posting replies and editing posts. Pretty much anything that PHP does people do with AJAX. Loading lists of data by pages, providing suggestions in search boxes, allowing users to post comments without reloading. There are countless ways to use AJAX to enhance your website and people have all kinds of different uses for it on their websites.

Link to comment
Share on other sites

so stating the question somehow different-usually, in a modern site, functions performed by php are now performed by Ajax.is the above statement correct? is there any function left performed solely by php?

Link to comment
Share on other sites

Any decent site that uses AJAX always has a fallback for if Javascript is disabled.Every site is different, you can't generalize for all modern sites. Some sites are very AJAX-driven while others rely less on it or not at all.

Link to comment
Share on other sites

Ajax isn't a replacement for PHP, it's just a way to exchange data with the server and take any other action (like updating the page) without refreshing the entire thing. Maybe it's contacting a PHP script to get some new data, but PHP is still doing the work to get that data.

Link to comment
Share on other sites

functions performed by php are now performed by Ajax.
that's not possible since PHP is PHP (server-side), and AJAX is Javascript (client-side). browser run Javascript can't perform server-side operations the way that PHP can, thus AJAX has become a method by which to make a request to a server side script in order to execute some server side code and return a response to the browser. Applied applications of this can be for anything your webapp needs that would benefit from it being done without having to refresh the page.
Link to comment
Share on other sites

Guest LH91325

AJAX is a way for the server side software to interact with a site visitor and change the page in real time. (This is two-way communications between the server script and the client script.) If the site just presents static information and needs no user interaction then I see no reason to use AJAX.

Edited by LH91325
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...