Danbabe
07-11-2008, 01:12 PM
Hi folks,
I really need your help again! I have data that is categorised. What I need to know is if someone clicks a category, the data then expands to show sub categories or content.
Imagine an FAQ area that is displayed by categories. When someone clicks on a category, rather than get the server to load a new page with all the questions that have been asked before under that category, the content expands to show all the questions underneath that category. Then if the user clicks that category again, the data contracts again to just show the category title.
Someone told me that this can be done using style sheets and Javascript.
Has anyone got any code that I can take a look at or examples that will help me here?
As an example of what I am talking about, visit; http://www.adobe.com/products/flex/faq/
You will see from the example that when the plus sign is clicked, the data moves down the page and displays content under that category. I cannot make head nor tail of the code myself.
Many thanks
Dan
I really need your help again! I have data that is categorised. What I need to know is if someone clicks a category, the data then expands to show sub categories or content.
Imagine an FAQ area that is displayed by categories. When someone clicks on a category, rather than get the server to load a new page with all the questions that have been asked before under that category, the content expands to show all the questions underneath that category. Then if the user clicks that category again, the data contracts again to just show the category title.
Someone told me that this can be done using style sheets and Javascript.
Has anyone got any code that I can take a look at or examples that will help me here?
As an example of what I am talking about, visit; http://www.adobe.com/products/flex/faq/
You will see from the example that when the plus sign is clicked, the data moves down the page and displays content under that category. I cannot make head nor tail of the code myself.
Many thanks
Dan