WiseMo Guest Component API
|
WGuest control comes in two forms:
To place WGuest control on a web page insert these lines where you want it to appear:
<object id="wguestIE" classid="clsid:63511059-B465-43fc-8D09-23DE91071CB2" codebase="WGuestX.cab" height="700" width="1100" border="0"> <embed id="wguestFF" type="application/npwguest" pluginspage="npwguest.xpi" height="700" width="1100" border="0"> </object>
wguestIE.HostAddress = "some.host.url"; // works in IE wguestFF.HostAddress = "some.host.url"; // works in Firefox wguest = document.getElementById(document.all ? "wguestIE" : "wguestFF"); // document.all is defined in IE only wguest.HostAddress = "some.host.url"; // works everywhere
Another approach is to create either embed or object element dynamically.
WGuest distribution has Web folder.
You may find it at %ProgramFiles%\WiseMo\WiseMo RSM\Guest Component\Web if you have not changed installation path.
It contains various files to allow for Web deploying of the control.
WGuestX.cab - ActiveX, packed as Microsoft .CAB package npWGuest.dll - Netscape plugin npWGuest.xpi - Netscape plugin, packed as Firefox extension wguest.html - sample html page embedding WGuest control wguest_version.js - current version and other attributes, you might need it to create WGuest elements dynamically
WGuest control behaviour is altered when used from site not in the trusted sites list: some operation are not allowed at all, when connecting confirmation dialog pop ups, etc. See WGuest Scripting Security for details.
You can inspect and add to trusted sites list with SiteLockTool utility.