displaying multi-section html documents - best practices
Posted
by
ecpepper
on Programmers
See other posts from Programmers
or by ecpepper
Published on 2012-06-07T18:23:54Z
Indexed on
2012/06/07
22:47 UTC
Read the original article
Hit count: 433
JavaScript
|html
I work at a research organization and we publish a lot of large-ish documents, usually organized in sections. What I want to know is how best to present these multi-section documents on our website.
Presently, what I do is load the entire document as a single page, with each section as its own div. Then I show and hide divs as needed via a table of contents and "next" and "prev" buttons.
The advantages to this are mainly: 1) that you can move between sections very quickly, 2) it produces consistent analytics (when a page is loaded, I know a report is being read).
The disadvantages, however, are real:
- Readers can't take advantage of browser back/forward buttons to move between sections.
- It's complicated to create direct links to individual sections (I can do it with javascript but it's not easy for other people to grab and share).
- For long reports, you have to wait for the full report to load before you can move around (and that can include hordes of images and charts).
Do other people have thoughts on better ways to organize this? Here's an example of the current system: http://massbudget.org/825
© Programmers or respective owner