On 2007-05-16, at 18:04 EDT, Pablo Kang wrote:
I want to know what system my application is running under with OL
3.4. Is there a service or canvas attribute I can get this info from?
In 3.x you have the following canvas attributes:
// @field String build: build number of the LPS that generated
this application (for .lzo files,
// this is the build of the server that
generated the optimized file, not the
// one that served it).
// @field String lpsversion: version number of the LPS that
generated this application (for .lzo files,
// this is the version number of the server
that generated the optimized file, not the one
// that served it).
// @field String lpsrelease: release of the LPS that generated
this application (for .lzo files,
// this is the release of the server that
generated the optimized file, not the one that
// served it).
In 4.x this is consolidated in a canvas method:
/**
* Compute version info as a string
* @access public
*/
static function versionInfoString () {
return (
'URL: ' + LzBrowser.getLoadURL() + '\n' +
'Version: ' + canvas.lpsversion + '\n' +
'Release: ' + canvas.lpsrelease + '\n' +
'Build: ' + canvas.lpsbuild + '\n' +
'Date: ' + canvas.lpsbuilddate + '\n' +
'Target: ' + canvas.runtime + '\n' +
'Runtime:' + LzBrowser.getVersion() + '\n');
}