|
Tutorial
The Internet Explorer Webbrowser can be used to run HSP files, but since WinXP Service
Pack 2 (SP2) there are issues
that could make it unworkable for running HSP apps.
Due to security considerations, pages with script code are blocked and you now get
this warning message:
The user must explicity choose to allow the page to run (only the first page of
HSP app has this warning). Furthermore, the next version of IE will have a tabbed interface.
For many HSP apps, this may make not be a suitable environment. Therefore we
have created a simple "shell" browser application to run your HSP files. It
has only a toolbar and menu - just the things you need to run your HSP application.
Here is a screenshot (Note: the HSP download uses the HSP Browser, so you can see
it in action when you download the trial):
You get these extra features with the HSP Browser that you don't get with IE:
- Ability to not allow text selection on the webpage, therefore copy is not
allowed.
- Ability to disable the context menu.
- Enable/disable AutoComplete on webform pages.
- Ability to disable printing.
- Ability to set your own custom "window.external" COM object.
Extra Power through window.external
A very powerful feature of the HSP Browser is the ability to specify
a COM object to be set as the "window.external" object of the webpage. It
can be any COM object - your own or someone else's (an Excel spreadsheet for example).
By specifying the object's CLSID or ProgId in the EzStor Settings dialog, you can
call methods and properties of the COM object in your webpage like this:
<button onclick="window.external.DoSomething">Click
Me</button>
Your COM object methods can do anything that a normal program can do with no restrictions
- display a custom dialog box for some user interaction, perform file I/O, call
out over the Internet - anything at all.
Conclusion
If you want a simple shell in which to run your HSP application with no annoying
popup warnings, the HSP Browser is recommended.
|