I’m working on an AJAX based site (which also involves PHP and MySQL) and I’m trying to create a product selection system, where someone can start with a dropdown list of very generic items, and slowly (through additional drop down menus) “narrow” down to the specific item or class of items they are looking for.
My problem is this: I’m not sure how to go about the dynamic portion of it. Should I just create a bunch of drop down lists, and then through Javascript, hide or show them as needed, or should I create them dynamically as I need them? My other issue is that for some items, the lists may be only 2 or 3 levels deep, whereas for others, it may be 4-6 levels deep.
I’m trying to minimize the amount of HTML code, so I can decrease the page size and browser processing time, so any advice would be helpful.
I am quite experienced in Javascript, HTML, PHP and MySQL. Lastly, I DON’T want to use any third-party libraries, such as jQuery–it needs to be hand-coded by me.