• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do I get the "Close button" to work? I added it to the popup window but it does not generate

New Here ,
Mar 25, 2013 Mar 25, 2013

Copy link to clipboard

Copied

How do I get the Close button to work?  I am using RoboHelp 10.  I used the Insert HTML - CLOSE button to the popup.  It appears on the Design screen and the HTML code (inserted below) is in the HTML page.  Once I generate using Webhelp with a skin and then generate again using the option WebHelp to CHM it does not appear on the popup windows.  Any suggestions?

<!--Metadata type="DesignerControl" startspan
<object classid="clsid:42C00FA3-1504-11d1-8EED-00DC929131C8" id="CloseWindow"
   border="0" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px;
   margin-right: 0px;" align="bottom">
<param name="_Version" value="65536"  />
<param name="_ExtentX" value="1085"  />
<param name="_ExtentY" value="609"  />
<param name="_StockProps" value="13"  />
<param name="ForeColor" value="0"  />
<param name="BackColor" value="15790320"  />
<param name="UseButton" value="-1"  />
<param name="UseText" value="0"  />
<param name="ControlLabel" value="Close"  />
<param name="UseIcon" value="0"  />
<param name="Items" value=""  />
<param name="Image" value=""  />
<param name="FontInfo" value="Arial,8,0,,"  />
<param name="_CURRENTFILEPATH" value="D:\My Documents\My RoboHelp Projects\TRBP Biometric Collection System\WindowsSecurityEnterPIN.htm"
  />
<param name="_ID" value="CloseWindow"  />
</object>-->
<object
  classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"
  id="CloseWindow"  type="application/x-oleobject">
<param  name="Command"  value="Close" />
  <param  name="Button"  value="Text:Close" />
<param  name="Font"  value="Arial,8,0,," />
</object>

<!--Metadata type="DesignerControl" endspan-->
</p>

Views

900

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 25, 2013 Mar 25, 2013

Copy link to clipboard

Copied

Hi there

The first thing I'd check is to see if the process of generating WebHelp is clobbering the code. It may well be, as I believe this button is intended for CHM use only.

Assuming the code is being stripped out, the next thing to investigate is exactly how to make it be preserved. My thought is that you could accomplish it by using JavaScript to perform a series of document.write statements to add the code into the topic.

Cheers... Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 25, 2013 Mar 25, 2013

Copy link to clipboard

Copied

Is it possible to place the CLOSE method in the stylesheet default.css?  If so -- where about would I put it?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2013 Mar 26, 2013

Copy link to clipboard

Copied

Hi,

JavaScript can close a page, but the user may be prompted for confirmation. Closing a page may be considered unwanted behaviour by browsers. Check out: http://www.javascript-coder.com/window-popup/javascript-window-close.phtml for a description.

But the JavaScript method will not work with CHM.

Greet,

Willam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2013 Mar 26, 2013

Copy link to clipboard

Copied

Hi William

I found a solution to close the popups that works in CHM. But thank you.

Now to find a way to have the breadcrumb (Navigation path) appear on the topic pages but not on the popups.

 

Janet

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2013 Mar 26, 2013

Copy link to clipboard

Copied

"Now to find a way to have the breadcrumb (Navigation path) appear on the topic pages but not on the popups. "

- associate different master pages for topics with breadcrumbs & ones that are popups; don't turn on breadcrumbs in the SSL recipe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2013 Mar 26, 2013

Copy link to clipboard

Copied

Hi Jeff

I tried that it didn't seem to work.

Sent from Janet's phone to you.

Have a lovely day

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2013 Mar 26, 2013

Copy link to clipboard

Copied

LATEST

For the issue of breadcrumbs, you need to turn off Global breadcrumbs in the Single Source Layout recipe. Then create a Master Page and add a Breadcrumbs placeholder. Associate the Master Page with only the topics you wish to have Breadcrumbs.

Cheers... Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2013 Mar 26, 2013

Copy link to clipboard

Copied

Found the answer thanks to Guy Demers.

Added the following to the HTML page for the popups.  It worked in WebHelp and CHM So happy.

<form method="post" action="">

<input type="button" value="Close Window" onclick="window.close()" />

</form>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp