Attachment 'example-html.txt'
Download 1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
6 <title>WebWorks Help 5.0 Javascript Example</title>
7
8 <script type="text/javascript" src="../wwhapi.js"></script>
9 <script type="text/javascript" src="wwhbaseurl.js"></script>
10 <script type="text/javascript">
11 <!--
12 var GlobalHelpsetA;
13 var GlobalHelpsetB;
14
15 GlobalHelpsetA = new WWHAPI_Object(BaseHelpURL() + "helpsets/HelpsetA" , "help_window");
16 GlobalHelpsetB = new WWHAPI_Object(BaseHelpURL() + "helpsets/HelpsetB" , "help_window");
17
18 // -->
19 </script>
20 </head>
21
22 <body>
23 <h2 class="title">WebWorks Help 5.0 Javascript Example</h2>
24
25 <blockquote>
26 <p>
27 Two separate ePublisher Express projects were generated to create two separate helpsets. Each helpset contains a TopicAlias entry called "Topic1". In the "Merge Settings" configuration for each ePublisher Express project, the top group's "context" value was set to "volume1".
28 </p>
29 <p>
30 To access each helpset, create a single <code>WWHAPI_Object</code> instance for each one helpset, as in "GlobalHelpsetA" and "GlobalHelpsetB". Then simply call the javascript API call <code>DisplayHelp()</code> or <code>DisplayHelpWithNavigation()</code> as demonstrated below. A new browser window is loaded only for each Object instance; subsequent calls will not invoke a new window.
31 </p>
32 <p>Note: You will have to initialize the base url path, either by modifying the function <code>BaseHelpURL()</code> in the file: <code>wwhbaseurl.js</code> and/or the initialization of each object.
33 </p>
34
35 <div>
36 <code>
37 GlobalHelpsetA.WWHelp_DisplayHelp('volume1','Topic1')
38 <a href="javascript:GlobalHelpsetA.fDisplayHelp('volume1','Topic1');">Click Here</a>
39 </code>
40 </div>
41
42 <div>
43 <code>
44 GlobalHelpsetB.WWHelp_DisplayHelpWithNavigation('volume1','Topic1')
45 <a href="javascript:GlobalHelpsetB.fDisplayHelpWithNavigation('volume1','Topic1');">Click Here</a>
46 </code>
47 </div>
48
49 <div>
50 <code>
51 GlobalHelpsetA.WWHelp_DisplayHelpWithNavigation('volume1','Topic1')
52 <a href="javascript:GlobalHelpsetA.fDisplayHelpWithNavigation('volume1','Topic1');">Click Here</a>
53 </code>
54 </div>
55
56 </blockquote>
57 </body>
58 </html>
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.