We currently have a system that display multiple sections on one page when it loads. What we were looking at doing is breaking each section into an expandable/collapsable group that is controlled by the end user with all groups collapsed on load by default. In saying that, is there a way to have it load the section ONLY when expanded to avoid having all the queries run to load the individual sections?

To explain it another way, we have an ASP page that is set to up to query and load all sections displayin on the page, so we have --

  • Section 1
  • Section 2
  • Section 3
  • Section 4
  • Section 5

When you first go to the page we want all of these sections to be collapsed (only showing the title of each section) but when expanded, we want it to run the respective queries to pull that section (and only that sections) information from the database?

The simplest way will be to use an iFrame for the menu, otherwise you will be mixing a JavaScript and ASP cocktail that probably won't provide the flexibility that you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.