Madcap Flare JavaScript method, open the help document is new window instead of a new tab

1k Views Asked by At

While integrating the Flare application, I am trying to use the JavaScript method. The below is the approach suggested. While I am using this I am always getting the document opened in a new tab instead of a new window. Is there any approach in JS so that I can open this in a new window rather than a new tab.

Reference: http://webhelp.madcapsoftware.com/flare11/Content/CSH/HTML5_CSH_Calls/CSH_Calls_HTML5_Developers.htm?Highlight=developers

<input type="button" value="Open Help System" onclick="MadCap.OpenHelp(ID, skin name, search string, first pick search string value );" />
4

There are 4 best solutions below

0
On

For those who come after, it is important to understand the different elements you can use when you make the JS call -- and this is not an easy thing to understand from the documentation.

onclick="MadCap.OpenHelp(ID, skin name, search string, first pick search string value );"

The ID is the CSH ID that you assigned in the alias editor in Flare. This can either be the ID or the value (which is odd, but true).

The skin name is the filename of the skin you want to include, but NOT the extension. So if in your project you have a my html5 skin.flskn file, you would enter: my html5 skin. (Please don't use spaces in your skin names... but they don't actually affect the functionality in this case.)

So if you want to create a link to a topic that has a CSHID of 1234, and you want to use the default skin tied to the target, you would use:

onclick="MadCap.OpenHelp(1234);"

If you want to create a link to a topic that has a CSHID of 1234, and you want to use the skin specialskin.flskn, you would use:

onclick="MadCap.OpenHelp(1234,specialskin);"

I hope this clarifies the situation for somebody in the future.

0
On

The skin name specifies the target window object.

2
On

No, this is a browser configuration. A new tab "is" a new window. It's just organized nicely for you.

you can make a popup though. look at jquery ui dialogs: http://jqueryui.com/dialog/

1
On

What skin were you using? You can only control the size of the output window in HTML5 Tripane output (not topnav or sidenav).

https://help.madcapsoftware.com/flare2022r3/Content/Flare/Skins/Other-Activities/General/Specifying-Size-Positioning-Output-Window.htm