C.F. Scheidecker Antunes wrote:

My first question is: How to organize that? Shall I have a data structure with a parentId field so that I can do a SQL select for all the items with that parent category?

Second question is: Shall I use some sort of data structure like a list of objects where the object is a representation of a Category and its fields such as CatID, ParentID, Name.

As opposed to what?

I guess I should have Javascript do the job as far as populating those lists for the interface. Are there any smart solutions to that? Is there any example on the web that anyone is aware of?

I implemented a "solution" to this usecase that basically grabbed the data and cached a chunk of JavaScript code (a multi-dimensional array containing the useful bits of data (id and label)), but that was before I knew about AJAX-like things; I'd might look towards that as a more robust solution now.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to