Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Convert nested list HTML TOC to JS Tree ?

by renodino (Curate)
on Jun 04, 2007 at 17:41 UTC ( #619187=note: print w/replies, xml ) Need Help??

in reply to Re: Convert nested list HTML TOC to JS Tree ?
in thread Convert nested list HTML TOC to JS Tree ?

Thnx for the links. I also found a entry reviewing Pod::POM::Web with a screenshot link. And then found several other solutions on CPAN. I'd forgotten about the Pod::POM namespace.

But based on what I've seen thus far, Pod::ProjectDocs comes closest to what I'm after: a minimal solution to format the complete POD for a project, and that I can subclass for some add'l features I need. I don't really need/want a full webserver based solution, just the docs, and I'd rather not have to navigate an entire document model. With ProjectDocs, I can just grab or filter out what I need with a few regexen. Then just copy it up to a website for public consumption.

Which leads me to think I've got 2 distinct issues:

  1. The general problem of converting nested HTML lists to a JS tree
  2. The specific issue of easing navigation of POD project docs
(Note that if the nested lists were in their own div, or if the outermost list had a unique ID, the conversion could be done entirely in Javascript. But that much recursive Javascript in the browser makes me nervous).

After some minor changes to my HTML nested lists hack, I successfully applied it to some other non-POD web pages in dire need of refreshing/easier navigation. Which also leads me to think that using HTML nested lists might be a nice notation for generating JS tree widgets, since the HTML would be pretty standard, whereas there are about 1,000,000 different JS tree widget APIs roaming the web.

Perl Contrarian & SQL fanboy
  • Comment on Re^2: Convert nested list HTML TOC to JS Tree ?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://619187]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2018-04-21 21:07 GMT
Find Nodes?
    Voting Booth?