The Exit button in the toolbar does not work for me.

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets

The Exit button in the toolbar does not work for me.

Postby Sharpras on Fri Jan 23, 2009 12:39 pm

I am creating WebHelp in Windows XP Professional, Version 2002, SP 3. I selected to have the Exit button [CloseHelp] on my toolbar within the Skin. In the Skin > Styles > Type, the OnClick property says: onClick="javascript:window.close();" But when I open the Help and click the Exit button it doesn't do anything. Has anyone else used it? Is this a bug?
Sharpras
Sr. Propeller Head
 
Posts: 138
Joined: Fri May 05, 2006 10:17 am
Location: Redmond, WA

Re: The Exit button in the toolbar does not work for me.

Postby Dave Lee on Mon Jan 26, 2009 2:36 am

Flare's skin designer doesn't include a button type that closes the help, so is this something that you added (or the person who designed the skin)?

Anyway, I can see a few things with the javascript OnClick property.

First, you don't need the onClick=" " part, you just need the javascript itself.

Second, the action window.close() will close the current window, but the window is inside a frameset so it is acting on the frame containing the toolbar icons, not the whole thing. The command top.window.close() will try to close the whole frameset.

Anyway, try this for the OnClick property (exactly as it is):

Code: Select all
top.window.close();


That will close the window (for the whole frameset) - if you have IE you might get a confirmation prompt to close it.
Dave Lee
Master Propellus Maximus
 
Posts: 5846
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: The Exit button in the toolbar does not work for me.

Postby Sharpras on Mon Jan 26, 2009 9:16 am

Thanks, Dave. That worked [ top.window.close(); ] --closed the WebHelp after OK-onfirmation window.

Roger
Sharpras
Sr. Propeller Head
 
Posts: 138
Joined: Fri May 05, 2006 10:17 am
Location: Redmond, WA


Return to Web-based Outputs

Who is online

Users browsing this forum: No registered users and 8 guests