in
Innovasys Logo

How to markup the recent item in HTML-TOC

Last post 06-27-2008 10:47 PM by Ernesto. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-24-2008 11:39 AM

    • mreisbeck
    • Top 75 Contributor
    • Joined on 04-24-2008
    • Frankfurt/M.
    • Posts 5

    How to markup the recent item in HTML-TOC

    There where no highlightning (markup) in my HTML- "Table of Content" at all. The recent item is never marked up, you know? Innovasys told me last year, the missing highlight in the web-toc is a fault caused by Microsoft. That doesn't heIp me much. So I went on searching the solution. In the whole WWW-universe I didn' t found one simple word about this fault. It seemed, I was the only guy, who is busy by this fault in the HTML-TOC. Heureka, I fiddled it out. The solution is really simple:

    1) Open the webtoc.html

    2) Search for the string "function documentElement(id)"

    3) Put in a new line before the line with this string.

    4) Fill into the new line the following javascript-function:

    function markitup(ele)
    var li_liste = document.getElementsByTagName("li");
    for (var i = 0; i < li_liste.length; i++)
    {
    li_listeIdea.style.backgroundColor = "";
      if (ele.parentNode === li_listeIdea)
         {
         li_listeIdea.style.backgroundColor = "silver";
         }
      }
    }

    Excuse me for the light-bulbs within the code. At this three positions is a special expresion which is turned by the forum-system into a light-bulb. The expression is:
    a starting bracket "["
    then type in an "i" and
    then type in the closing bracket "]".

    5) Search and Replace. Search for the string
    "><img"
    and replace it with
    " onclick="markitup(this);return true"><img"
    (att. the blank in the beginnig of the string!). For every item in the TOC, there will be a change now.

    If you don't like the "silver" color, change this expression or fill in an hex-expression (#aa99ee). You all are professionals. Must not talk about specials in syntax.

    Thats all. It's just a smart workaround. Have fun! Big Smile

  • 05-12-2008 4:47 AM In reply to

    Re: How to markup the recent item in HTML-TOC

    Many thanks for sharing this tip. HelpStudio will include it's own implementation of this functionality in the next update.

    Richard Sloggett
    Innovasys
    http://www.innovasys.com
  • 06-27-2008 10:47 PM In reply to

    Re: How to markup the recent item in HTML-TOC

    Hello mreisbeck,

    We have had the same problem and we have also developed our own solution.

    We work for the UNEP (United Nations Environment Programme) – GEF (Global Environment Facility) Biosafety Unit, more precisely under a capacity building project called “Building Capacity for an effective participation in the Biosafety Clearinghouse”. This Biosafety Clearinghouse or BCH in short, is a central repository for biosafety – related information, as mandated by the Cartagena Protocol on Biosafety. This clearinghouse is a public tool, reachable at http://bch.cbd.int . You can find more information about the Convention on Biological Diversity and its Cartagena Protocol under http://www.cbd.int.

    As part of the project, we are collaborating now with the SCBD (Secretariat for the Convention of Biological Diversity, developer and responsible for the BCH itself) in implementing the Help System for the entire Biosafety Clearinghouse. This help system is being developed now by us using Innovasys Help Studio, based on our existing training materials. The project can be reached from the online help of the BCH or directly at http://bch.cbd.int/Help/Topics/en/webframe.html?Home.html.

    We have encoutered the same problem with the table of contents, and we have developed a javascript-based plug-in for HelpStudio that solves it entirely (basically a javascript file plus some HelpStudio templates). Our plug-in works perfectly even when accessing a particular topic directly using the "?" notation (the plug-in searches for the topic in the table of contents, expands the right nodes and highlights the corresponding node), and when using cross-reference links within the help system.

    We would be happy to share this solution with the user community of HelpStudio; please feel free to take the plug-in from our help system's site. We have also developed an installation guide for the plug in, which we are also willing to share.

    If you are intrested, please contact me at ernesto@qualisyss.com and I will send the information.
     

     


     

Page 1 of 1 (3 items)