Introduction | Browser
Compatibility
Main Menu
Top Panel
Page - Navigation Pane
Page - Navigation Tabs
Page - Frame
Page - Toc & Index
Page - Search
Page - Generate
Trouble Shooting
This window is available from the Authoring menu (main window).
With Uncompressed help we simply add a Frame, TOC, Index & Search files to an existing web site for navigation. Uncompressed means files are not compressed to a single .CHM help file. The strength of uncompressed help is that it can be used anywhere HTML can be used -- a web server; USB thumb drive; CD or DVD; etc.
A frame set is create. The left pane displays the TOC, Index or Search. The right side displays your normal web content.
This dialog will add several files to the root of your local web. It will not change your existing web files.
Copyright & Licensing
The Index JS code and Search JS code were written by the FAR team. Please respect our code. The code has not been obfuscated in any way. In fact we encourage you to make changes to it. Remember that the code is copyright and owned by us. Please respect it as you would any 3rd party executable. You must own a copy of FAR HTML to publish a web containing FAR navigation.
Modifying Code
This dialog allows you to create web site navigation in several different styles and configurations. It is difficult to please everyone so we encourage you to get familiar with the HTML code generated and modify it as required. Otherwise contact us and we will try and add in your changes.
Examples
Our helpware.net site contains two examples created using FAR Uncompressed Help:
Lets talk about browser compatibility.
JavaScript TOC/Index/Search
Select JavaScript output for highest compatibility.
The JavaScript navigation produced by FAR is compatible with all the latest versions of all the major Browsers. JavaScript is the in-built client side script language that comes standard with all major browsers. JS compatibility between different browsers has been poor in the past, but has improved much since the introduction of IE6, Firefox and Opera browsers.
Browser we have tested under Windows:
IE 6 XP SP2 Excellent Firefox 1.0.1 (Mozilla5/Gecko) Excellent Opera 8 Beta Excellent Opera 7.54u2 Very Good. Some issues with layout if a small or large font chosen. No Toc Sync. Netscape 8 Beta Excellent Netscape 7.2 Excellent HH ActiveX TOC/Index Controls
The MS HTML Help 1.x ActiveX controls will only work in Internet Explorer 4 or greater. Remember only IE supports ActiveX.
If you have users who don't mind being restricted to IE these are nice controls. Unlike the JS controls these controls can load .HHC and .HHK files natively. And the TOC can display all those pretty HH 1.x TOC icons.
Microsoft do not produce a portable Search engine so for search you must use FAR JS search, Google (if web based) or whatever.
Note: Dec 2004 MS Security update MS05-001 has now disabled hhctrl.ocx (HH ActiveX) controls from working on the web. Read more. Still ok for use on a local PC.
HH JAVA TOC/Index Controls
Not Recommended.
Many years ago (1997) Microsoft released a JAVA version of the HH ActiveX control. At the time JAVA promised to be the future of web and cross-platform development. Unfortunately MS did not maintain this controls and it's no longer compatible with most browsers.
Pure HTML TOC/Index
Recommended for older browsers.
Not very swish but old browsers should have no trouble with this HTML code. The TOC and Index are exported to very plain HTML. Search is up to you. If you are on the web use the Google free search engine.
Web Stats
April-2005: Here are the web stats from Helpware.net (remembering that we deal mainly with MS technologies):
Msie 6.0 69.1 % Firefox 12.9 % Opera 2.4 % Msie 5.5 1.5 % Msie 5.01 1 % Msie 5.0 .7 % Netscape (all versions) .7 % You can see similar figures published around the web. At this stage FAR JS Navigation works with all the popular browsers.
File > Open Base Folder
Select the base folder of the local web you want to work with.
EG. If the folder "c:\projects\MyProject1\" contains all your project help files and folders, then select that folder. All files - .HHK, .HHC, frame files etc. are added to this directory. None of your existing Web files are modified.Dialog settings are saved and loaded from a file called "farinfo.ini" (also in the base folder). See File > Save.
File > Save
Stores the dialog settings to a section in the INI file "farinfo.ini" in the current base folder. You can safely delete this file at anytime (but you will return to the default settings). The section used to save settings under is specified in the Top Panel.
File > Load Defaults
Set all fields to their original default values. This reset affects only the current INI section, other sections containing data will remain the same. Note that some image settings will remain unchanged.
File > Converting MS Help 2.x files
This simply describes how to work with Help 2 TOC (.HxT) and Index (.HxK) files, and offers to open the FAR TOC/Index Editor for you. Basically it says that MS Help 2.x does not support uncompressed help. What you have to do is open your .HxT file in the FAR TOC/Index editor and use File>SaveAs to save the TOC to a .HHC file format, and similarly save your .HxK file to a .HHK file.
File > Windows Explorer
Open a Windows File Explorer window at the current base folder.
File > Exit
Close this window. Prompts you to save if there are unsaved changes.
Help...
Displays this on-line help.
The top panel is below the main menu and above the page tabs.
Base Folder:
Click this hyper-link to select a new Base Folder. This is simply a convenient repeat of the "File > Open Base Folder" command. The edit field displays the name of the current Base Folder.
Save in Section:
Click this hyper-link to Save all dialog data to disk. This is simply a convenient repeat of the "File > Save" command.
All data is saved to/loaded from the specified section in farinfo.ini which lives in the current Base Folder. Use the Add & Remove buttons to add/remove sections to/from the Section Name dropdown list. Note that the "Default" Section Name cannot be removed.
Saving various dialog configurations into different sections means you can recall different configuration later. This is done by simply selecting a section name from the dropdown lost. You will be prompted to save before moving from one section to another (but only if there is unsaved data).
Generate navigation files
Click this hyperlink to generate your final output. This is simply a convenient repeat of the "Generate page" command. It means you can tweak your settings and quickly generate the new navigation files without having to change pages all the time.
Like MS Help FAR can provides the 3 standard navigation panes: Contents, Index & Search.
Pane: [X] Contents, [X] Index, [X] Search
Select which of the 3 panes you want to generate using FAR.
Note that if you are using Gif Tabs the Contents pane should be included (checked). This is simply because when this feature was originally written we created Gif images that always used a TOC. In FAR Version 4 we have removed the limitation that forced you to include a Contents tab.
If you are artistic you could create your own set of Gif navigation tabs.
Background: Contents, Index, Search Dropdowns
Select the background color or image for each pane you have checked.
At the top of the dropdown list are some special items:
Custom... Select this item to select a color from a color select dialog. Use BG Image 1,
Use BG Image 2,
Use BG Image 3Select either image 1, 2 or 3. These three images can be defined at the bottom of this page. No Color Select this item to use no color code. _LightGray Simply the color #f1f1f1. Something we frequently use here in-house. _buttonface Also defined further down the list but redefined here at the top of the list for convenience. If you are using the HHK HH ActiveX control this is the only color that will match the fixed color of the HHK HH ActiveX control. Note: Although you specify a color by name (such as "Button Face") some color names only work in the MS Internet Explorer browser. These are typically the programming type names such as "Button face", "Window Text" etc. When using JavaScript navigation best to avoid these names and use "Custom".
Gradient Color
These fields are available when a Background color is specified (field above). To disable Gradient colors set the selected value to "*No Color".
This setting when enabled creates a gradient between two colors. Color#1 is the Background color. Color#2 is the Gradient color. Check the Vertical gradient checkbox to create a vertical gradient, uncheck for a horizontal gradient.
Since not all browsers support color gradients FAR actually creates a gradient image file (called hh_Gradient1.jpg, hh_Gradient2.jpg and hh_Gradient3.jpg) when the Generate button is clicked.
Background Image
Select up to 3 background image files (GIF or JPG). Once images have been selected, use the Background dropdown controls (above) to set a background image for a pane.
Click this button to select a GIF or JPG Image file from any location.
Click this button to clear the image selection.
Each time an image is selected, FAR copies the image as hh_bgImage1.jpg, hh_bgImage2.jpg, hh_bgImage3.jpg (or .GIF if a GIF was selected) into the base folder.
JS TOC Area Background
By default the background color behind the JavaScript TOC tree is light gray. The color is hardwired in the tree.js file. Check this box and select a color to override this color. When checked FAR places a <style> section in the header of hh_toc.htm to override the background color.
[X] Include Close Button
Check this box if you also want to add a Close button to each navigation pane.
Use Form Buttons
If you select this page tab then HTML <Form> Buttons will be used to move between navigation panes.
Button Text: Specify the text for each navigation pane button (and the close button if enabled).
Button Color: Check the box to specify the foreground and background color of the buttons.
Active Button Color: Check the box to specify the foreground and background color of the active button
EG. If Contents pane is selected at runtime then Contents button is the Active button.Active Button Disabled: Check the box to always disabled the active button.
EG. See image below - When the Contents page is selected then the Contents button is disabled.Clicking the Contents button while on the Contents page does nothing except reload the same navigation page. Thus we can safely disable it.
![]()
Notice that under Windows XP & Windows 2003 buttons are Themed buttons (as pictured above). If you check the "Button Color" checkbox you will lose the beautiful XP themed look.Use GIF Tabs
Select this page tab and .GIF Images files will be used to select navigation panes.
Select
to choose a set of tab images to use. Select any file in the set and FAR will copy the complete set of tab images into the base folder as hh_navtab11.gif, hh_navtab12.gif etc. The images are displayed as reference in this page. Hold the mouse pointer over each image to check its filename. Notice as you uncheck Index or search pane checkboxes (above) the images are hidden.
Note: All image sets assume you are using a contents navigation pane.
FAR provides some basic tabs sets to choose from. Note: Because of overlap, the Contents/Index/Search/Close tab sets may not function well when Index or search is unchecked. To fix this we sometimes provided modified tab sets EG. Std_Toc_Search_??.gif can be selected if you uncheck the Index pane. Create your own tabs sets if you don't find what you want.
xxx_11.gif, xxx_12.gif, xxx_13.gif Contents page tabs TOC/Idx/Search xxx_21.gif, xxx_22.gif, xxx_23.gif Index page tabs TOC/Idx/Search xxx_31.gif, xxx_32.gif, xxx_33.gif Search page tabs TOC/Idx/Search xxx_00.gif Image used after each of the above.
Include Close Button = Unchecked.xxx_0x.gif Image used after each of the above.
Include Close Button = Checked.Tip: If your tab images are not displaying correctly, reselect the tab set. This forces the tab set GIF files to be copied to the base folder.
Frame Title
This is the text displayed in the title bar of your browser. It's the <title>text</title> for the frame file.
Default Topic
Select the HTML file to be displayed at load time in the right hand frame.
Click the button to select an HTML file.
Click this button to edit the TOC or Index file in the preferred text editor (see main window Options > Preferences).
Click this button to open the file in MS Internet Explorer.
Left Frame Width
Specify the width of the left frame (containing the navigation panes).
Frame Divider Width
Specify the width in pixels of the divider separating left and right frames of the frame set.
This setting may not work in all browsers.Frame Divider Color
Specify the color of the divider separating left and right frames of the frame set.
This setting may not work in all browsers.Left Frame Footer
Check this box to display HTML at the bottom of each navigation pane.
Redirect to Frame if opening single TOC, Index or Search file
If you check this option then some extra code is placed inside TOC, Index and Search HTML files. If the user tries to open say the TOC file by itself (hh_toc.htm) then TOC file will immediately open itself in its usual position in a Framed window.
More about FAR Uncompressed Help and Frames
Normally a FrameSet file opens in a fixed configuration. ie. TOC on left side and home page on the right. How could you open the Index on left and some other page on right?
In FAR 4.0.0.622 you can pass the left and right file names as a bookmark (anchor). This works with either the FAR redirect.htm or hh_start.htm FrameSet file. Here are some examples:
First the basics:
Open the default FrameSet file
http://helpware.net/FAR/help/hh_start.htmThe redirection file simply opens hh_start.htm above if JS enabled browser is being used.
http://helpware.net/FAR/help/redirect.htmNow we add some parameters:
Use a single bookmark to override the right frame.
http://helpware.net/FAR/help/hh_start.htm#file_menu.htmRedirection file again. Redirection params are simply passed onto the redirect file (in this case hh_start.htm above).
http://helpware.net/FAR/help/redirect.htm#file_menu.htmUse two parameters to set both frames. The bookmark contains 2 parameters separated by a + char.
The first param sets the right pane. The second param sets the left pane.
http://helpware.net/FAR/help/hh_start.htm#file_menu.htm+hh_index.htmIn this case we override the left frame only.
The first param is empty so the right frame gets the default file name.
http://helpware.net/FAR/help/hh_start.htm#+hh_index.htmTip: If a file does not seem to change try pressing F5 to refresh the page.
We found that a single IE browser session wont update if you are serving up the same HTML page (hh_start.htm), even though you are changing the bookmark.
Example: Click these 2 links. The second link wont work since hh_start.htm is already loaded. The browser ignores the change in bookmark.
http://helpware.net/FAR/help/hh_start.htm#file_menu.htm
http://helpware.net/FAR/help/hh_start.htm#tutorial/findandreplace.htmOne way to overcome this problem is to use hh_goto.htm (created at the same time and in the same folder as hh_start.htm). It simply redirects you to hh_start.htm, passing on any parameters. So parameters for hh_start.htm are the same for hh_goto.htm.
If you are setting up contextual help then try using hh_goto.htm instead of hh_start.htm
Example: These links both work
http://helpware.net/FAR/help/hh_goto.htm#file_menu.htm
http://helpware.net/FAR/help/hh_goto.htm#tutorial/findandreplace.htm
This page is only available if you have checked either the Content or Index pane checkbox on the first page.
Note that FAR authors the TOC and Index files in standard MS HTML Help .HHC and .HHK sitemap format. If you are generating pure HTML or JavaScript output these files wont need to be shipped. They are simply required at generation time.
Specify TOC & Index control type
Since MS disabled the HTML Help ActiveX control from working on internet and intranets (see web for details), JavaScript is now the preferred way to add navigation to a remote web side using client side code. HH ActiveX controls can still be used for webs on the local PC (hard drive or CD or DVD).
- JavaScript
- The TOC and Index generated are purely DHTML and Script. No ActiveX or Java is used. Your HHC and HHK files are used to generate the HTML code but are not required to be shipped.
The DHTM TOC is the same used by NDOC 3.x. The TOC tree.JS code file itself was originally written by Jean-Claude Manoli and as requested we have left the copyright notice in the header of the tree.js file. Please do the same. The code is used with permission.
The JavaScript Index is our own creation and works like a basic MS Index navigation pane, except you don't get popup lists and shortcuts to other index items. Something that we may add in the future if we get requests.
See also Browser Compatibility
- HH ActiveX Controls
- The MS HTML Help ActiveX visual controls are used to display the HHC and HHK files. As stated above MS have blocked the HH ActiveX (hhctrl.ocx) from working on the web [web ref]. So only use this type of navigation if you are running on the local PC. These controls require IE4 or greater. Most other browsers do not support ActiveX.
- Pure HTML
- No script. No DHTML. This navigation is very plain but should work with even the oldest browser.
Use a redirection file to load pure HTML navigation if JS or IE4 support is not found. See Generate page.
- HH Java Controls
- The MS HTML Help Java Applet is used to display the HHC and HHK files. We advise you not to use this setting since the applet was never maintained by Microsoft and is quite out dated.
Common buttons
Click the button to select a TOC or Index file from the base folder.
Click this button to edit the TOC or Index file in the preferred text editor (see main window Options > Preferences).
Specify a .HHC (table of contents) file
Enter the name of a .HHC (TOC) file to use. The file should live in the base folder. Enter the filename with no directory part. If the folder does not have a .HHC file then click the "Create TOC" button. FAR will then search for HTML files and create a .HHC file for you. If you already have a .HHC file then click the "Edit TOC" button to open it in the FAR TOC & Index Editor.
Normally you would create a TOC file once, then maintain it using FAR TOC & Index Editor.
Specify a .HHK (Index) file
Enter the name of a .HHK (Index) file to use. The file should live in the base folder. Enter the filename with no directory part. If the folder does not have a .HHK file then click the "Create Index" button. FAR will then search for HTML files and create a .HHK file for you. If you already have a .HHK file then click the "Edit Index" button to open it in the FAR TOC & Index Editor.
If these settings are disabled its because you uncheck the Index pane checkbox on the first page.
This page is only available if you have checked the Search pane checkbox on the first page.
FAR provides two search options:
Custom Search Code
Here you simply enter the code for the search navigation pane to use.
If you own your own domain name and want search to cover the entire domain then we recommend you use Google. There is no beating Google for speed and quality. Google provides free code that allows you to search only your domain.
Click the Setup Google Code with my domain link to generate Google code. When prompted enter your domain name. EG. www.helpware.net. Note that if you use non-Western coding or UTF then you need to also edit the two items coded as "iso-8859-1". See Google.com for more info.
FAR JavaScript Search
This is a very powerful feature of FAR. FAR can create a simple Search Engine using nothing but pure JavaScript. No ActiveX is used. No server side Indexing is required. No Java is required. The search code is very portable. It will work anywhere (web, intranet, CD, DVD etc) as long as you have a JavaScript enabled browser. See Browser Compatibility.
Before your navigation UI search code will work you must generate the search database file searchdata.js. To do this go back to the FAR main window and...
- Set the FAR drop filter to HTML files only.
- Drop the Root folder of the local web onto FAR.
- Remove any HTML files from the FAR list not wanted in the search data.
- Select Authoring > Build JavaScript Search (main menu) and build the searchdata.js file.
Select a Search Page Layout
Select one of the available search page layouts from the dropdown and generate the navigation code (Generate page).
There is not much more to say here except try each layout and see which you prefer. If you don't like the search text or layout then edit the final Search HTML. Note that half the layouts use offer "Partial word matching" and half offer "Match whole words only" -- These are simply opposites of each other. If you compare the code you will see that the Full Match checkbox has a NOT operator in the code.
For more reading on FAR JS Search code see Build JavaScript Search dialog help.
Common buttons
Click to edit the file in the text editor.
Click to test the file in MS Internet Explorer.
Create Navigation Files
Create Navigation Files button
Creates the required navigation files in the base folder. Copies all required auxiliary files (such as tree.css, tree.js, search.js etc) from the FAR \extra\ folder into the base folder.
This is the final step. You have tweaked all the dialog settings and this button generates the final navigation files based on those settings.
As soon as the Frame/TOC/Index/Search files are created, the Frame is loaded into your IE browser.
Always Copy Auxiliary Files checkbox
When checked Generate will force a refresh of all auxiliary files (such as tree.css, tree.js, search.js etc) from the FAR \extra\ folder. When unchecked these files are not normally copied to the base folder unless they are not already there. Leave this unchecked if you plan to modify any of the auxiliary files and don't want Generate to overwrite them.
Shipping button
Click this button to view a list of files used or created by FAR that should be shipped with your web site.
File names
If you don't like our chose of Frame and pane HTML file names you can enter your own names.
Create a Redirection File
Browser are all different. Some old browsers wont like the JS content. And if you use HH ActiveX controls then this content will only work in IE4/5/6/7.
There is a way that we can keep all browsers happy. Use a redirection file to sniff the browser type and load appropriate content.
Create Redirection File button
Creates a redirection file and opens it immediately in Internet Explorer. The redirection file simply tests whether the current browsers is JavaScript enabled (or the browser is IE4 and greater). The choice of test is controlled by the two radio buttons.
EG. Check the "JavaScript support" radio button to create a redirection file that tests if the browser is JavaScript enabled. If the test passes (a JavaScript enabled browser) then the redirection file opens the frameset "hh_start.htm". If test fails (not a JavaScript enabled browser) then the redirection file opens the frameset file "ht_start.htm".
Procedure: Creating a JavaScript Redirection
- In the "Create Navigation Files" group above set all file prefixes to "hh_".
Select for JavaScript output and Generate the navigation files.
- Now set the file prefix to say "ht_".
Select for pure HTML TOC and Index (and something safe for search)
and again Generate the navigation files.
- In the redirection groupbox select the "JavaScript support" radio button
then click Create Redirection File.Now when you open redirect.htm you should see navigation that will work no matter what browser is used.
This problem has been observed in IE6 while testing on a local drive. Once the files are copied to the web there is no problem. Recommend you use JavaScript instead of ActiveX.
If the right pane is from a different domain there will be security restrictions and the JS TOC sync code will kick up an error (we call this on page load and when the Sync link is clicked). You can simply ignore this or you could edit the code and disable the call to TocSync on page OnLoad (and also the call at end of page).
Take a Look at the frame source. Notice that the 2 frames have been given names called "left" and "right".
<FRAMESET COLS="265,100%" framespacing=3 frameborder=1>
<FRAME SRC="hh_toc.htm" name="left" scrolling="no">
<FRAME SRC="index.htm" name="right" scrolling="auto">
</FRAMESET>Edit your TOC and Index files. On the Properties page of the FAR TOC/Index Editor is a field called Frame. Make sure this is set to right. So now all pages are opened in the correct Target called right.
For the search or footer HTML make sure that any anchor or form tags contain Target="right" to direct content to the right frame
Example: <a href="somefile.htm" target="right">Click me</a>