Ross Plourde

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromRoss Plourde
ToMe
SubjectCollapsable FAQ List
Date21 April 2004 18:05
Hi,

Your Collapsable FAQ List example works great in IE 5 for Mac. How can I
get it to work on Netscape or Safari?

Also how do I keep a previous list expanded when I click on another list?

Thanks, 

Ross.
FromMe
ToRoss Plourde
SubjectRe: Collapsable FAQ List
Date21 April 2004 19:22
Ross,

I assume you mean the collapsible FAQ script I wrote on:

http://www.howtocreate.co.uk/emails/TobyBrown.html

This script should already work in IE 4+ win/mac, Opera 7+,
Netscape6+/Mozilla, Safari/Konqeror 3, iCab and ICEbrowser. Other browsers
should just leave all the answers visible. I just tested it in Opera and
Mozilla to be sure. I don't have my Mac to test right now, but I can check
tomorrow if you are still having problems with it.

It does require exclusive access to the onload event, so this might be a
cause of problems, but as long as no other scripts you are using also need
to use onload, you should not have any problems.

If you are having problems using the script, please send me a URL of the
page where you are trying to use the script, and I will see what I can do
to help.

To stop it automatically collapsing previously opened answers, comment out
the lines:
if( storedDiv && storedDiv != oDiv ) { storedDiv.style.display = 'none';
} storedDiv = oDiv;


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
FromRoss Plourde
ToMe
SubjectRe: Collapsable FAQ List
Date21 April 2004 21:13
Mark,

    Thanks for your response. I worked around the onload event by changing
it to a function called collapse() and calling it in the body tag. It would
not work in Netscape or Safari because I was using the <div> tag outside of
the <tr> or <td> tags. It displayed better this way but only worked in
Internet Explorer. Thanks for your help.

Ross.
FromMe
ToRoss Plourde
SubjectRe: Collapsable FAQ List
Date21 April 2004 21:58
aah yes, that was invalid HTML :)

You can apply the class directly to the TR tags too if you want ...
It will in fact work with any tag, I just used a div as it is the most
generic block level HTML tag.

Anyway, happy to hear it is working. Good luck
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.