Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

showHelp() method

I have a help file called help.html.
I use showHelp method that  lets  a script open a winhelp window  
I want to change height and weight the browser 's Help window
What is the code to bring up this html page?
0
bysexperts
Asked:
bysexperts
1 Solution
 
bubbledragonCommented:
You need the feature for resize the window?

window.open('help.html','winhelp', 'toolbar=no,location=no,directories=no,menubar=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=500')
0
 
mvan01Commented:
That's right.  If it is an .html file, you open it in a new browser window, and bubbledragon has shown you the code.

The showHelp() method, specific to IE running on Win32 operating systems, lets a script open a Winhelp window with a particular .hlp file.  The calling syntax is:

showHelp("URL",["contextID"])

where the square braces indicate that the second parameter is optional.  You can pass the particular ID if your Winhelp file has specified context identifiers - allowing the call to showHelp() to open the .hlp file to a particular area which pertains to the specific element on your main page.  The showHelp() method does not have any window sizing parameters - Windows will open the Winhlep window however it chooses.

If you have a help file written in .html, open it in a browser window instead.  You can achieve the same context sensitive effect by using <span> in the help file and adding the reference to the URL when opening the file:

in your help file:

<span id="this">
Help about this ...<br>
blah, blah, blah<br>
</span>
<span id="that">
Help about that ...<br>
yaddah, yaddah<br>
</span>

in your main file, if the user was looking for help when they were on a page pertaining to "that", you'd use bubbledragon's command, but with the context tag added to the url:

window.open('help.html#that','winhelp', 'toolbar=no,location=no,directories=no,menubar=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=500')

All of help.html will be loaded into the new window, but it will be scrolled to the beginning of your "that" section.  Also, in this example, the new browser window will be named and referenced as 'winhelp', but will have nothing in particular to do with the showHelp() method nor .hlp files.

mvan
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now