How to invoke WebHelp as popup?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
MC Hammer
Sr. Propeller Head
Posts: 225
Joined: Wed Aug 08, 2007 3:04 am
Location: In a galaxy far, far away

How to invoke WebHelp as popup?

Post by MC Hammer »

Hello everyone,
I am relatively new to WebHelp, having been producing HTML Help for a good numbers of years now.
I have been testing my output in IE, Firefox and Chrome and have a query re: the size and position of the output window.
In the Size tab of the skin, is it good practice to enable the Use Browser Default Size or do people prefer to select a custom size for the window, by using the option in the Size section underneath?

I would like to specify a custom size but the help states the following:
The size settings in the skin will not work in Google Chrome or Mozilla Firefox browsers unless the output is invoked as a popup.
Where are the settings to do this and is this up to me or the developer to do this?
Thanks in advance.
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
atomdocs
Sr. Propeller Head
Posts: 308
Joined: Tue Jun 18, 2013 3:00 am
Location: Eastern Seaboard, Thailand
Contact:

Re: How to invoke WebHelp as popup?

Post by atomdocs »

Hi Marie-Claire, I think popup here means invoked with context sensitive help (CSH). You can specify the size in Flare, but you'll need to set up CSH with your developer.
Tom
Flare 2022, Capture 7
Image
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: How to invoke WebHelp as popup?

Post by NorthEast »

To answer the first question, I'd say best practice is to use the browser default size, as you are far more likely to annoy people by changing/resetting their browser size.

As for how to open the help with the browser size, I'd be interested to know what "invoked as a popup" means, and see an example.
I looked into this a few years ago, and seem to remember it works for CSH calls only, but didn't work with tabbed browsers. An alternative would be to use something like javascript window.open with a specified height/width, as this should display it in a new window rather than a new tab.
MC Hammer
Sr. Propeller Head
Posts: 225
Joined: Wed Aug 08, 2007 3:04 am
Location: In a galaxy far, far away

Re: How to invoke WebHelp as popup?

Post by MC Hammer »

Thank you both for your prompt and valuable replies.
I do not quite understand what invoking the help as a popup exactly means but from what you both seem to think, this may be linked to CSH. I will try and investigate (developers haven't assigned resource IDs yet so this will have to be put on hold for now...).
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
atomdocs
Sr. Propeller Head
Posts: 308
Joined: Tue Jun 18, 2013 3:00 am
Location: Eastern Seaboard, Thailand
Contact:

Re: How to invoke WebHelp as popup?

Post by atomdocs »

You can set up an alias and header file (these are the CSH components) in your Flare project and then do a test on your own system with Dave's javascript tip, although you can still specify the dimensions in your Flare project, along with show/hide status bars etc. I did this last year to demo a help system simulating CSH. I'll try to find the details. I agree with Dave about letting the user define the browser size and position, but there are exceptions (one of my clients develops a medical imaging system, and so the size of the help window needs to be strictly controlled, so as not to obscure the medical image - but these cases are probably exceptional).

I am pretty sure that "invoked as a popup" means a CSH call, it's just not very clear.
Tom
Flare 2022, Capture 7
Image
atomdocs
Sr. Propeller Head
Posts: 308
Joined: Tue Jun 18, 2013 3:00 am
Location: Eastern Seaboard, Thailand
Contact:

Re: How to invoke WebHelp as popup?

Post by atomdocs »

Marie-Claire, this is what I did to simulate CSH:

1. Set up an alias file and a header file (I think this can be done semi-automatically).

2. Set up the intended browser size, position, and config (e.g. show/hide menus, toolbar, location bar, status bar, switch resize on or off). This is done in the skin properties.

3. Create an .htm file as follows:

Code: Select all

<!DOCTYPE html>
<html>
    <head>
    <script type="text/javascript" src="[project]/Output/[skin]/csh.js"></script>
    </head>
	<body>
	<input type="button" value="Online Help" onclick="MadCap.OpenHelp([topicID] );" />
	</body>
    </html>
You need to provide the path to csh.js - this file is created automatically when you build. Then just add the ID of the topic that you want to open.

4. Open your .htm file and click the button.

Note: this is a very, very basic demo of a CSH call, and really only lets you observe whether your help system opens with the correct size/position/display settings. But I think it illustrates "invoked as a popup".
Tom
Flare 2022, Capture 7
Image
MC Hammer
Sr. Propeller Head
Posts: 225
Joined: Wed Aug 08, 2007 3:04 am
Location: In a galaxy far, far away

Re: How to invoke WebHelp as popup?

Post by MC Hammer »

Hi Tom
Thank you for such a comprehensive input. I will give this a go whenever I can.
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: How to invoke WebHelp as popup?

Post by NorthEast »

Would it not be a lot easier to just use the built-in CSH test?

Select Build > Test CSH API Calls.

The CSH tests available depend on the output type of your current primary target.
I think for WebHelp it simulates a javascript CSH call, but for HTML5 you can choose either the javascript or URL methods.
atomdocs
Sr. Propeller Head
Posts: 308
Joined: Tue Jun 18, 2013 3:00 am
Location: Eastern Seaboard, Thailand
Contact:

Re: How to invoke WebHelp as popup?

Post by atomdocs »

Would it not be a lot easier to just use the built-in CSH test?
Yes. You could have said that earlier, Dave!

But thanks :)
Tom
Flare 2022, Capture 7
Image
fchan
Propeller Head
Posts: 47
Joined: Fri Aug 31, 2012 11:41 am

Re: How to invoke WebHelp as popup?

Post by fchan »

I have no luck in specifying the size and position of the window containing the HTML5 help topic. I used CSH to invoke the help, but each time the help is launched, the window would be displayed in one place for a split second, and then "jump" to the ultimate position. This jumping is irritating. I have tried various sizes and positions in the HTML5 skin but the window behaves just the same. I called MadCap tech support but they couldn't figure it out. This happens with IE and Chrome.

So I'm forced to use "Use Browser Default Size" in the skin to specify the window size. This setting doesn't cause the window to jump from one place to another on the first launch. However, with Chrome, it still displays the window with the default skin (from MadCap) very very briefly before my custom skin is displayed. (i.e., the window would "blink" before it settles). It's still better than seeing the window jump from one place to another.
Post Reply