Published on 2005-07-22 21:35:04
Jim Plush posted thoughts about PHP and AJAX and "punishing" your clients less. The post talk about his experience of creating dynamic menus for companies that have huge data, in fact PHP and AJAX could be a real alternative. Dynamic menu will show only the data that the customer requests, and generate the rest via a few handy javascript calls.
From working in the PHP Enterprise world I know two things... big companies have ALOT of data and they want it displayed fast. If you can give them alot of data in a website, fast and correctly anything you do is golden. Here is a problem I tackled with Ajax technology...
Problem: You have a tree control in javascript that displays a series of clickable tree branches. The list is expanding as time goes on. So now you have 3,000 possible nodes in your tree and next week you might have 7,000, next year 10,000.
The solution? Don't make your customer pay for things they aren't going to look at! We have 7,000 nodes in our tree. Will the customer look at half of those in one sitting? probably not. So what is the solution? Ajax + PHP.
I didn't seen before Tree menu using AJAX to load data, and in fact this was ambiguis for me too before to create tree with huge data, it tooks long time to be generated and also generally user don't need to access all nodes, so PHP and AJAX could be really an excellent alternative to generate nodes on demand.
Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved