Make Web Help Context Help work without JavaScript

Are you missing a feature? Request its implementation here.
MF_OK
Posts: 1
Joined: Wed May 13, 2015 4:17 pm

Make Web Help Context Help work without JavaScript

Post by MF_OK »

It would be useful to be able to deploy Web Help on a local machine without a HTTP server.
Sadly, Internet Explorer and many other browsers block JavaScript from local files.
That entirely breaks context help.

For this reason and for other script averse situations it would be nice if
Web Help worked fully without JavaScript.

One way to implement this would be to generate a redirection page for each id.
It would redirect to the topic the id concerns using a refresh tag.
http://en.wikipedia.org/wiki/Meta_refresh

You could even make the tree navigation work without JavaScript.
http://www.thecssninja.com/css/css-tree-menu
Might require extra XSLT trickery to make the current page always be folded open when you navigate to it, though.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Make Web Help Context Help work without JavaScript

Post by Radu »

Hi,

We will look into this but we have quite a lot of Javascript functionality (for example we also need JS for the search part).

If you are using Oxygen 17 to produce WebHelp, the output folder should contain an XML file called context-help-map.xml which maps each topic ID to the corresponding HTML document. So hypothetically you could create an XSLT 2.0 stylesheet, apply it over the XML file and use the result-document function to produce for each ID an HTML document with that redirect refresh metadata in place.

Also in the output folder there is an "index_frames.html", it still uses Javascript in some places but it is better suited for offline use.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

Re: Make Web Help Context Help work without JavaScript

Post by urbanrobots »

We also experience issues with JavaScript browser support. We tell people to use FF or Chrome, but our users in China mostly use IE.

Any chance that this will be updated to an optional configuration in a later release?

Thanks,
- Nick
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Make Web Help Context Help work without JavaScript

Post by adrian »

Hi Nick,

What specific issues are you experiencing with JavaScript?
Have you tried 'index_frames.html' (instead of 'index.html')?
As my colleague mentioned, if you are working with offline/local WebHelp, this is better suited for that purpose.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply