Quote:
Originally Posted by moredial
I am ready to learn. Nothing I have seen so far shows ajax to be a wonder solution.
Show me something and have it working across all platforms and meet all the legal requirements for accessibility. Why build 2 sites when you can do it all with only one?
|
Problem is, you can't do it all with only one. Have you not seen some cool things you can do with ajax?
First of all, ajax is a fuzzy term. It encompasses several things: DOM manipulation, XHR server callbacks, and pretty much just 'javascript done well'.
Yes if you want accessability, then you need to make sure that you have support for that, with the NOSCRIPT attribute etc.
But to say that you can do anything ajax can do in PHP, is simply stupid. ajax is about executing script on the client side. It's about making the user interface immediate and responsive to the user. It's about calling back to the server seamlessly in the background instead of reloading the page all the time. It's about playing with the DOM.
PHP is a *server* side scripting language that usually generates static HTML pages.
It's not a wonder solution at all, and of course it doesn't work in old browsers.
In the instance above specifically, perhaps they are using ajax/an XHR to update product results in the browser dynamically as the user types in a search box for instance. That's a nice feature to have, and one you can't do in PHP.
PS. Good luck reimplementing google maps in PHP.