Custom toolbar button or link to close Help window

This forum is for all Flare issues related to the WebHelp Mobile target and skins
Post Reply
Jeannie Marzonie
Jr. Propeller Head
Posts: 7
Joined: Thu Nov 29, 2007 10:20 am

Custom toolbar button or link to close Help window

Post by Jeannie Marzonie »

I'm delivering Mobile WebHelp for two HTML5 applications. I'd like to be able to have a button or link on the topic toolbar that closes the Help browser window and returns the user to the main app. Any ideas?
jeannie
JasonSTI
Sr. Propeller Head
Posts: 110
Joined: Mon Jan 07, 2008 11:34 am

Re: Custom toolbar button or link to close Help window

Post by JasonSTI »

A lot will depend on how you are calling the help from your apps. As long as you are calling them as a child via Javascript, i.e.:

Code: Select all

<a href="" onclick="window.open('Default.htm?cshid=1000', 'hlpwnd');">Help!</a>
Then you can simply add a standard Javascript close button:

Code: Select all

<a href="" onclick="window.close;">Close</a>
If you are not calling the help via Javascript, then the button will either do nothing, or warn the user that the script is attempting to close the window. The help HAS to be a child window to close problematically.

We havn't got into testing this heavily with mobile browsers, so there may be some sticking points, but it works on our initial tests.
Post Reply