Output message when JS disabled?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
BobMerrill
Propeller Head
Posts: 45
Joined: Tue Nov 07, 2006 10:17 am
Contact:

Output message when JS disabled?

Post by BobMerrill »

A user submitted a bug saying that the Help page is blank when JS is disabled. My response would be "yep, that's correct."

I'm trying to figure out a way to put a <noscript></noscript> tag in somewhere that will show up when JS is disabled so that it will provide a message rather than a blank page.

I tried putting it in the topic master page, but that doesn't seem to be the right place. It looks like I should be able to put something in the skin, but I'm having trouble finding the right place.

Suggestions welcome!

Thanks,

Bob
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Output message when JS disabled?

Post by GregStenhouse »

I had a bit of a dig around. It looks like Flare webhelp loads a blank page (Skin\Blank.htm) and then uses scripting to load the default topic - if you have scripting disabled, you are left on that blank page. So it looks like your <noscript> text is best placed in the <body> tag of that file. You could either alter the output each time you generate (maybe with a batch file or something?), or change it in Program Files:
C:\Program Files\MadCap Software\MadCap Flare V5\Flare.app\Resources\WebHelp\Default.flwht\Blank.htm

Beware though that if you install an update to Flare that file may be overwritten.

Cheers
Greg
Post Reply