help: misbehaving "print topic" javascript in ForeHelp InterHelp project

Subject: help: misbehaving "print topic" javascript in ForeHelp InterHelp project
From: Wrdfinesse -at- aol -dot- com
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Tue, 13 Nov 2001 23:34:30 EST

Hi all. I'm ~72 hours out from a product release, and Murphy's smacked me with a vengeance. I've sent the details to FH's tech support, but haven't heard back from them so thought I'd check with you all ...

I've created a "cross-platform" (yeah, I know) InterHelp .html help system using ForeHelp's ForeHelp Pro (version 5.0.2a). I had (notice the past tense) successfully used the following JavaScript string to code a print function in the navbar of a 3-pane help system (using FH's custom template builder: navbar on top pane, content topic in right pane, TOC in left pane).

javascript:window.top.frames['content].focus();print()

Sometime within the last three or four builds (the last six working days) the above script quit working. (It still works when I run the project locally; but once it's merged with the code base it's gehosened.)

When I click the help button (running debugger), I get the following error:

Line 0:
Error: 'window.top.frames.content' is null or not an object

Microsoft's wonderful debugger has this to add:

An exception of type 'Microsoft JScript runtime error:
'window.top.frames.content' is null or not an object' was not handled.

<sarcasm>This is supposed to be an improvement over the lamented GPF?</sarcasm>

I've tried (at my developers' suggestions) replacing 'window.top...' with 'self.top...' and 'this.top...' no joy. The good news is that I can document a work-around (right-click in the topic pane and select print) in the release notes. But this one is just frustratin' the bejeebers out of me.

Has anyone encountered this and come up with a solution? I'd appreciate any insights ...

Thanks in advance!

Anne

Anne Halsey
wrdfinesse -at- aol -dot- com
webmaster, STC RMC
http://www.stcrmc.org

























^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Collect Royalties, Not Rejection Letters! Tell us your rejection story when you
submit your manuscript to iUniverse Nov. 6 -Dec. 15 and get five free copies of
your book. What are you waiting for? http://www.iuniverse.com/media/techwr

Your monthly sponsorship message here reaches more than
5000 technical writers, providing 2,500,000+ monthly impressions.
Contact Eric (ejray -at- raycomm -dot- com) for details and availability.

---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



Previous by Author: Re: bad leadership and tech writing
Next by Author: Re: help: misbehaving "print topic" javascript in ForeHelp InterHelp project
Previous by Thread: OT RE: Tech Writing Curriculum (wanders a little so marked it OT. )
Next by Thread: Re: help: misbehaving "print topic" javascript in ForeHelp InterHelp project


What this post helpful? Share it with friends and colleagues:


Sponsored Ads