Cross-referenced topics not always displaying at top of page

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
tjl
Propeller Head
Posts: 12
Joined: Tue Apr 29, 2008 3:00 pm

Cross-referenced topics not always displaying at top of page

Post by tjl »

I've found that an odd thing is happening with cross-references in the .chm file. I can click a link and I am taken to the related topic. The relevant information starts at the top of the window like I would expect. However, if I then click the back button to go back to the original page and click several other links, when I again try to click the first link, sometimes it appears at the top of the page as I would expect and sometimes it appears near the bottom of the page. The unexpected behaviour seems rather random. Has anyone had this happen and know of a way to fix it?

Thanks,
Tina
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Cross-referenced topics not always displaying at top of page

Post by LTinker68 »

The navigation might be remembering where you last were in a page when you navigated off it, so when you click the back button it goes to the area in the topic you were reading previously.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
tjl
Propeller Head
Posts: 12
Joined: Tue Apr 29, 2008 3:00 pm

Re: Cross-referenced topics not always displaying at top of page

Post by tjl »

I should have added to my original post - the links go to places in drop-down text. Do you think that could have an impact on the display? Also, I have been having others try the links. For some folks, the text doesn't even go to the top of the page the first time it is accessed and it works incorrectly most of the time. I've included some screenshots so you can see the correct and incorrect behaviors.
You do not have the required permissions to view the files attached to this post.
tjl
Propeller Head
Posts: 12
Joined: Tue Apr 29, 2008 3:00 pm

Re: Cross-referenced topics not always displaying at top of page

Post by tjl »

This issue has been corrected. In case anyone else expereinces this problem, here is the solution that worked for me:

The following changes were made to the MadCapBody.js file in C:\Program Files\MadCap Software\MadCap Flare V3\Flare.app\Resources\WebHelp\Content\SkinSupport\:

There is a block at line 176 that looks like this:

if ( !document.body.currentStyle )
{
document.location.href = document.location.href;
}

Put "//" in front of all lines except the one that starts with "document..." It should look like this when done:

//if ( !document.body.currentStyle )
//{
document.location.href = document.location.href;
//}
dynamite rabbit
Jr. Propeller Head
Posts: 4
Joined: Fri Aug 29, 2008 8:35 am

Re: Cross-referenced topics not always displaying at top of page

Post by dynamite rabbit »

Just wanted to say that this fix seemed to do the trick for my WebHelp project, too. See details at: http://forums.madcapsoftware.com/viewto ... 942#p44942 .
Post Reply