Scripting Collapsable 'Information Areas'

Caporegime
Joined
25 Jul 2003
Posts
40,451
Location
FR+UK
I'm after some javascripting to provide information underneath a list when clicked.

It's hard to explain exactly what I mean, and searching for anything just returns "tree" menu's, which isn't totally what I'm after.

Possibly the best analogy is an menu which when an item is clicked, an iFrame is loaded with the correct content. Maybe Ajax is the way forward.

I'm confused myself :p.
 
are you using a framework for your javascript? It sounds like all you want to do is toggle visibility of a div - if there's a lot of information in the div, you might want to load it asynchronously but I doubt it.
 
Yeah thats probably the best way to go about it. I think I've been over complicating it, thanks again Sic. Next time I'll just email you :p.
 
In case you're not online tonight - you're getting the gap because you can't put a div in a p tag, so the browser is closing the p before the div and it's causing the gap. Replace the p with another div and you'll be sorted.
 
Back
Top Bottom