Search found 1883 matches

by Martin Wynne
Tue Mar 10, 2020 9:29 pm
Forum: Programmers' Corner
Topic: Wrong Forum?: can't fathom where to insert JS code
Replies: 8
Views: 13065

Re: Wrong Forum?: can't fathom where to insert JS code

There are numerous code snippets on the Web that size an iframe dynamically based on content, but every one that I can find has the same attribute: they don't say where to insert the code. Hi Dave, There are lots of ways of doing it. The simplest is probably to modify the HTML Code Object for the i...
by Martin Wynne
Sun Mar 08, 2020 6:14 pm
Forum: Help+Manual 8 Forum
Topic: WebHelp suddenly is created w/o index.html
Replies: 15
Views: 2667

Re: WebHelp suddenly is created w/o index.html

Can I click on "OK" on the above error message? Hi Dave, There isn't anything else to click! Have you perhaps changed the name for the index file in the Publish dialog: hm8_index_file.png I feel sure that if HM8 had failed to create the specified index file it would have said so. It doesn...
by Martin Wynne
Sun Mar 08, 2020 3:05 pm
Forum: Help+Manual 8 Forum
Topic: WebHelp suddenly is created w/o index.html
Replies: 15
Views: 2667

Re: WebHelp suddenly is created w/o index.html

Dave Gehman wrote: Sun Mar 08, 2020 3:01 pmAfter that, there's an index report with "Successfully created all required files"
Hi Dave,

In that case, I would upload it to the server. :)

There are lots of reasons why it may not display properly locally on your system. It will be fine on the server.

cheers,

Martin.
by Martin Wynne
Sun Mar 08, 2020 2:52 pm
Forum: Help+Manual 8 Forum
Topic: WebHelp suddenly is created w/o index.html
Replies: 15
Views: 2667

Re: WebHelp suddenly is created w/o index.html

What does HM8 say on the Compiler Messages tab after publishing? Any error messages will be listed there.

Martin.
by Martin Wynne
Sun Mar 08, 2020 2:35 pm
Forum: Help+Manual 8 Forum
Topic: WebHelp suddenly is created w/o index.html
Replies: 15
Views: 2667

Re: WebHelp suddenly is created w/o index.html

Hi Dave, Have you changed to using .php file extensions? In which case the file is index.php , not index.html , and it won't display locally (except in Microsoft Edge), you will just see the source code. It will work fine if uploaded to the server (assuming it's a Linux server with PHP installed). c...
by Martin Wynne
Sat Mar 07, 2020 2:33 pm
Forum: Help & Manual 7 Forum
Topic: A most amazing HTML stumble
Replies: 3
Views: 1611

Re: A most amazing HTML stumble

Hi Dave, "global" is a reserved word in several languages, including PHP. I'm not suggesting that's the explanation in this case, but it's the sort of word I would avoid in a file name. I would try at least to modify anything I'm not sure about with an underscore -- "abc_globals"...
by Martin Wynne
Wed Mar 04, 2020 4:53 pm
Forum: Help+Manual 8 Forum
Topic: Webhelp in Firefox is cached very long
Replies: 2
Views: 1137

Re: Webhelp in Firefox is cached very long

Hi Thomas, The only sure way to ensure that everyone sees updated Webhelp pages immediately, or ever, especially in Firefox, is to change to using .php (or .asp, according to your server) file extensions for your Webhelp instead of .html There is an option in the HTML Export Options for that. The H&...
by Martin Wynne
Sat Feb 29, 2020 2:53 am
Forum: Help+Manual 8 Forum
Topic: Replacing .chm with eBooks problem
Replies: 15
Views: 3393

Re: Replacing .chm with eBooks problem

Hi Greg, The V2 eWriter skins already include a keyword search option. To open eWriter at the keyword index, and scroll to and highlight an existing keyword, use the URL switch functions. You need to add a parameter string such as: "index.html?index=blue%20bananas" when opening the eWriter...
by Martin Wynne
Fri Feb 28, 2020 7:58 pm
Forum: Help+Manual 8 Forum
Topic: Replacing .chm with eBooks problem
Replies: 15
Views: 3393

Re: Replacing .chm with eBooks problem

Greg Smith wrote: Fri Feb 28, 2020 6:01 pmPerhaps also an example of how to modify a skin to allow you to pipe a command line argument to some JavaScript would be useful to non-HTML/JavaScript folks like me.
Hi Greg,

To get the parameters in a URL, use window.location.search which returns the ?part of the URL.

cheers,

Martin.
by Martin Wynne
Fri Feb 28, 2020 7:36 pm
Forum: Help+Manual 8 Forum
Topic: Replacing .chm with eBooks problem
Replies: 15
Views: 3393

Re: Replacing .chm with eBooks problem

Greg Smith wrote: Fri Feb 28, 2020 6:01 pmMy concern is that the search, to be really useful, needs to be case insensitive
Hi Greg,

For a case-insensitive string search, use the equalsIgnoreCase() method on the first one.

Code: Select all

if (str_1.equalsIgnoreCase(str_2))
{  
cheers,

Martin.
by Martin Wynne
Thu Feb 27, 2020 8:09 pm
Forum: Help+Manual 8 Forum
Topic: Replacing .chm with eBooks problem
Replies: 15
Views: 3393

Re: Replacing .chm with eBooks problem

Hi Greg, I don't think what you are describing is A-keywords. I'm reading what you want to do is to search the keywords in the index, and open the topic to which the searched-for keyword is linked? You could do that by adding some scripting to the kwindex page template, something like function open_...
by Martin Wynne
Wed Feb 26, 2020 9:22 pm
Forum: Help & Manual 7 Forum
Topic: Linking to a web page - possible inside a topic?
Replies: 7
Views: 2043

Re: Linking to a web page - possible inside a topic?

Hi Dave, An alternative to using #MERGE would be to insert an iFrame in your topic. That's like installing a window opening in your topic page through which you can see an entirely separate web site, with its own heading, scrollbars, formatting, etc. It's very easy to do, just a single line in an HT...
by Martin Wynne
Wed Feb 26, 2020 3:09 pm
Forum: HelpXplain Infographics Tool
Topic: Play an Xplain OnMouseClick in another Xplain
Replies: 9
Views: 3820

Re: Play an Xplain OnMouseClick in another Xplain

Yes, more than one. My thought was to have several small images with the mouseover enlargement effect, each of which would invoke an xplain in a light box when clicked. Hi Mark, Having more than one in a topic makes a lot of work to set up, with multiple HTML Code Objects and custom scripts. Are yo...
by Martin Wynne
Wed Feb 26, 2020 12:02 pm
Forum: HelpXplain Infographics Tool
Topic: HX Bug: script encoding
Replies: 1
Views: 1808

HX Bug: script encoding

There seems to be an encoding bug in HX for object scripts. Quote characters are being encoded as ' apostrophe: hx_quote_bug.png which appears in the .html file as: onclick="javascript:alert('test');" I said seems to be, because most browsers seem willing to acce...
by Martin Wynne
Tue Feb 25, 2020 11:10 pm
Forum: HelpXplain Infographics Tool
Topic: Play an Xplain OnMouseClick in another Xplain
Replies: 9
Views: 3820

Re: Play an Xplain OnMouseClick in another Xplain

I was hoping Tim would tell me there was a simple way to invoke H&M's lightbox code Hi Mark, Well HM8 does have a lightbox option when embedding an Xplain, but only for the same Xplain as far as I can see, not a different one. And you don't then get the image zoom effect first. Do you anticipat...