[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Context-Sensitive Applethelp With Contents and Index Pane
Scott, To my knowledge, that microsoft applet stuff doesn't do that, but you could do it with some javascript. You could modify applethelp.xsl so that it spits out something like the following. Then you can load the page you want with file://///server/path/index.html?page=files/feature_help_file.html. ou probably want to have your real code look at the contents of the page variable and reject it if it isn't valid. Anyway, this is just for inspiration. David <html> <head> <script> function getSearchData() { var results = new Object(); if (location.search.substr) { var input = unescape(location.search.substr(1)); if (input) { var srchArray = input.split("&"); var tempArray = new Array(); for (var i = 0; i < srchArray.length; i++) { tempArray = srchArray[i].split("="); results[tempArray[0]] = tempArray[1]; } } } return results; } function loadFrame() { if (location.search) { var srchArray = getSearchData(); if (srchArray["page"]) { self.main.location.href = srchArray["page"]; } } } </script> </head> <frameset onload="loadFrame()" cols="250,*" framespacing="0" border="0" frameborder="0"> <frame name="contents" target="main" src="contents.pane.html" scrolling="auto"> <frame name="main" scrolling="auto" noresize src="files/index.html"> <noframes><body><p>This page uses frames, but your browser doesn't support them.</p></body> </noframes> </frameset> </html> > -----Original Message----- > From: Scott Eck [mailto:scott.eck@endinfosys.com] > Sent: Wednesday, January 11, 2006 12:59 PM > To: docbook-apps@lists.oasis-open.org > Subject: [docbook-apps] Context-Sensitive Applethelp With Contents and > Index Pane > > Does anyone know how to call a specific html file into the right-hand pane > of the help generated from the applethelp.xsl stylesheet while also > loading > the contents and index pane? I essentially need context-sensitive > applethelp, where our application can directly call a specific feature's > (html) help file in the right pane while _also_ loading the contents and > index pane on the left. > > The simplest way I'm imagining is by calling the specific file name after > the index.html file name (e.g. > file://///server/path/index.html#feature_help_file.html which is how > RoboHelp WebHelp invokes a specific help html file, and doesn't seem to be > working with applethelp). (I get that RoboHelp uses Javascript to load the > pane files, while applethelp uses Java...). I need to call the help file > from our application, preferably in the form of a URL. > > I've looked at the contents.pane.html and other applethelp related files > and > they look so simple that I should be able to figure this out but can't. > I'm > a complete beginner when it comes to java too... > > Thanks! > > -Scott > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]