which one do u prefer ? Ajax .. where it does not load .. but the contents change ... or normal loading when u click on another link ?
Each has its own advantages and disadvantages for a given case. They are not mutually exclusive, so the poll is specious. cheers, gary
I honestly get the feeling that 95% of the time AJAX is used, it's to cover up the complete lack of understanding of HTML/CSS by the developer. I can usually make pages that load as clean WITHOUT AJAX asshattery simply by practicing proper separation of presentation from content. When 90%+ of your sub-pages appearance is pre-cached thanks to it being in the CSS, a 7-10k pageload is going to be as transparent, possibly even FASTER. It certainly has it's place - the quick reply on these forums being an EXCELLENT example of using it properly - but it's not the be-all end-all tool many developers are abusing it for. The blessed patron Saint of Web Design, St. Schulz, once said to me that he considered AJAX in many ways to be the new framesets, and he was right. It's automatically an accessibility /FAIL/ in the majority of cases since few people think to include scripting-off fallbacks, it prevents direct linking to content since the URL doesn't change, and for all the wild claims of saving bandwidth are you REALLY generating 'savings' by tacking on 30-200k of javascript to the process? It's really a laugh when people go through all the trouble and hassle of AJAX for 'faster/smoother' page loads when they have 50 to 100k of markup and several hundred k of javascript for 5k of actual page content. Mind you, if your code to content ratio is below 2:1 already, and AJAX delivers something nice, go for it... But if your ratio is 5:1 or higher, you should probably be going back and learning how HTML and CSS are SUPPOSED to be used BEFORE resorting to any sort of javascript chicanery. Remember the cardinal rule of using javascript on a website - it should enhance functionality, not supplant it.
Ajax is an easy way to load things but should not be overused. Also you should use an load indicator to show your visitor content is loading.
Ajax is better in most of th times but there can be some security violations in production environemnt.So I would say don't over use Ajax,but still I would go with Ajax.