[Flare 10] Remove link from HTML5 skin header in Default.htm

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
alex
Propeller Head
Posts: 96
Joined: Fri Aug 25, 2006 11:22 am

[Flare 10] Remove link from HTML5 skin header in Default.htm

Post by alex »

Hello,

Clicking the header area of our HTML5 help (in both the standard tri-pane help and the responsive version) results in some weird behavior. I'm not sure how to describe it, but the help goes into sort of a loop looking for "Default.htm" and the only way you can make it stop is to close the help.

If I manually remove the hyperlink to Default.htm in the Default.htm file generated in the output, I am no longer able to click the header and trigger that loop, so that is my temporary workaround. However, I'm hoping there is some other way to disable the header link (or to get it to work properly and not loop endlessly).

The parts in red are the ones I remove to stop the issue:

<div id="header" data-mc-style="Header"><a href="Default.htm"><h1 class="logo" data-mc-style="Logo"><img src="Skins/Default/Stylesheets/Images/transparent.gif" alt="Logo" /></h1></a>

<div id="responsiveHeader" class="needs-pie" data-mc-style="Header"><a href="Default.htm"><h1 class="logo" data-mc-style="Logo"><img src="Skins/Default/Stylesheets/Images/transparent.gif" alt="Logo" /></h1></a>


If anyone who knows what I'm talking about (cough cough Dave Lee cough cough :) ) can tell me what I need to do so the help doesn't geek out when someone clicks the header, I would be very grateful!

Many thanks,
alex
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: [Flare 10] Remove link from HTML5 skin header in Default

Post by kwag_myers »

I experienced this behavior when using a JavaScript with some bad syntax in the if statement. Have you added any .js to the project? Also, have you tried deleting your Output folder (after making a backup)?

I've tried different browsers, and changing the Default.htm file name so there was a mismatch between the file and link (resulting in a Page Not Found error). However, I can't seem to simulate the behavior.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
alex
Propeller Head
Posts: 96
Joined: Fri Aug 25, 2006 11:22 am

Re: [Flare 10] Remove link from HTML5 skin header in Default

Post by alex »

Yes, I have javascript to include Back and Forward buttons because the software forces our help to display in a browser window that does not have any of the typical browser buttons or menu (so, no back and forward buttons, etc.). Note: I'm not talking about the "Next" and "Previous" buttons Flare includes to take you through the topics in the order in which they are included in the TOC.

If I add the custom buttons to take you back and forward, the looping default.htm issue occurs when you click the help viewer banner.
If I remove the custom buttons, the looping default.htm behavior does not occur.

I used both variations of the javascript syntax I found here in the forums e.g., viewtopic.php?f=9&t=19070#p99830, but maybe I'm missing something in how or where I'm including the javascript?


In the Toolbar tab of the HTML5 Skin Editor, I included the following js (one set at a time in a skin, not both sets together):

window.history.back();
window.history.forward();

history.back();
history.forward();

And then in the Styles tab, in the Toolbar Button section, I entered "window.history.back();" in the Event - Click field for the Back button, and "window.history.forward();" in the Event - Click field for the Forward button.

(and then I tried the same thing without "window" in the js.

I hope someone can tell me what I need to change in order to get the buttons to work without triggering the endless looping of the default.htm call when I click the banner in the help viewer :)

Thanks!
NorthEast
Master Propellus Maximus
Posts: 6372
Joined: Mon Mar 05, 2007 8:33 am

Re: [Flare 10] Remove link from HTML5 skin header in Default

Post by NorthEast »

alex wrote:In the Toolbar tab of the HTML5 Skin Editor, I included the following js (one set at a time in a skin, not both sets together):

window.history.back();
window.history.forward();

history.back();
history.forward();
Remove that - you only need to include the back/forward script for the button events (that post doesn't mention using the toolbar script).

If you include that code in the toolbar script, it will just be run straight away when you open the help.
Post Reply