I was just wondering if it is possible on the web to have a button to expand all sections of a document??
Javascript is not my strongest point so any help would be very appretiated.
Thanks!
I was just wondering if it is possible on the web to have a button to expand all sections of a document??
Javascript is not my strongest point so any help would be very appretiated.
Thanks!
Subject: Button to Expand Sections on the Web?
Have you tried just using @Command( [SectionExpandAll] )?
That will cause a page refresh, of course. If you’re feeling ambitious and want to do this entirely in JavaScript (with no refreshes) you can build your own “sections” using DIV tags. Then you can hide it or display it using style.display:
document.getElementById(‘[div id]’).style.display=‘block’ (or ‘none’)
There are probably other options, but I have been using the DIV tags successfully for a while now.
Subject: RE: Button to Expand Sections on the Web?
Yep I had tried that but it doesn’t do anything when the button is clicked. It doesn’t even refresh the page.
Also in notes help it says that @Command( [SectionExpandAll] ) does not work over the web.
Thank you for your response though!
Any other ideas?