I've managed to build somewhat of a context-help system in my web application. By linking directly to the different help topics from various pages in my web site I can pull up exactly the topic the user would expect.
Even better, the browser-based html is smart and includes JavaScript so that if a topic is ever loaded directly it instead loads the frame set with the TOC on one side and the topic on the other.
The result is when a user clicks on the help icon in the web application he or she gets help about whatever he or she is looking at. Works great!
The only shortcoming is that when linking directly this way although it pulls up the TOC, it doesn't synchronize it with the topic being viewed. If it just did this it would be perfect...
Synchronize TOC when viewing topic directly in browser-based
Moderators: Alexander Halser, Tim Green
- Tim Green
- Site Admin
- Posts: 23189
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
This sounds great, Brette! If you have the time I'm sure that lots of users (myself included) would like to read a description of how you do it. If you do write one just post it in Tips & Tricks and if it turns out to be something longer I'll move it to the permanent Tutorials section.
Sorry I can't help you on your question -- maybe Alex or someone else will...
Sorry I can't help you on your question -- maybe Alex or someone else will...
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
- Alexander Halser
- EC-Software Support
- Posts: 4106
- Joined: Mon Jun 24, 2002 7:24 pm
- Location: Salzburg, Austria
- Contact:
That's a bug in the current version of our java script. It is meant to work with particular topics when you use this syntax:
http://www.ec-software.com/helphtml/ind ... atsnew.htm
Note the ?whatsnew.htm at the end of the url.
This displays the topic but does not yet synchronize the TOC.
http://www.ec-software.com/helphtml/ind ... atsnew.htm
Note the ?whatsnew.htm at the end of the url.
This displays the topic but does not yet synchronize the TOC.
Alexander Halser
Senior Software Architect, EC Software GmbH
Senior Software Architect, EC Software GmbH
-
- Posts: 1
- Joined: Tue Oct 08, 2002 6:30 pm
- Location: Switzerland
Superb
I wanted to request this feature and it's already done.
I have studied the Java Script code and I think a solution for synchronizing the navigation tree must be possible.
I will do a lot of links to my HTML manual for referencing topics. For user friendly view the navigation should be synchronized.
I wanted to request this feature and it's already done.
I have studied the Java Script code and I think a solution for synchronizing the navigation tree must be possible.
I will do a lot of links to my HTML manual for referencing topics. For user friendly view the navigation should be synchronized.
- Alexander Halser
- EC-Software Support
- Posts: 4106
- Joined: Mon Jun 24, 2002 7:24 pm
- Location: Salzburg, Austria
- Contact:
We will implement this in version 3.2. As a quick workaround you could patch the javascript after creation. Look in your output folder for a file named help_content.js and open it with a text editor.For user friendly view the navigation should be synchronized.
Insert the following lines (patch marked with "begin patch" and "end patch"):
Code: Select all
if (currentNumber == "") currentNumber =
top.location.href.substring(top.location.href.lastIndexOf("?")+1,top.location.href.length);
for (i=0; i<tocTab.length; i++) {
if (tocTab[i][2] == currentNumber && tocTab[i][2] != "") {
currentIndex = i;
//-----------Begin patch--------
currentNumber = tocTab[i][0];
currentNumArray = currentNumber.split(".");
currentLevel = currentNumArray.length-1;
//-----------End patch--------
break;
}
if (tocTab[i][0] == currentNumber) {
currentIndex = i;
break;
Alexander Halser
Senior Software Architect, EC Software GmbH
Senior Software Architect, EC Software GmbH