TrayBrowser API - Legacy API
Legacy compatibility API
This API set is added to stay backwards compatible with older legacy versions of TrayBrowser. Full behavior and quirk compatibility is not guaranteed, but most of the legacy code using TrayBrowser 1.0/1.1 will run with this API set without significant changes. The incompatibilities to address and changes necessary are described below.
First things first, take care TrayBrowser 3.0 does not provide external window object as legacy IE-based TrayBrowser version does. To make legacy code work without changes under TrayBrowser 3.0, assign provided traybrowser object to external name somewhere early in the code. Or better, change legacy code to use traybrowser object directly.
Another incompatibility lies in that TrayBrowser 3.0 does not provide TrayBrowser API inside embedded frames and objects on the main page to address potential cross-site scripting issues. If embedded frame or object origin is the same as main site, window.top.traybrowser reference may be used in it to reach TrayBrowser API.
Legacy API methods
- SetTitle(caption)
- SetSize(browserWidth, browserHeight)
- GetWidth
- GetHeight
- SetPosition(browserLeft, browserTop)
- GetLeft
- GetTop
- GetScreenWidth
- GetScreenHeight
- GetApplicationPath
- GetRuntimePath
- GetSettingsPath
- ReadINISetting(name, default)
- WriteINISetting(name, value)
- RemoveINISetting(name)
- Exec(command, mode, timeout)
- Ping
- Traceroute
- GetSystemInfo
- GetIPInfo
- GetRoutingTable