I'm sure we could expose it in swf. But I think the idea was that swf doesn't depend on your browser, so you shouldn't need to have browser- based quirks in applications compiled to swf runtimes.

On 2009-09-01, at 06:28, Raju Bitter wrote:

I tried to debug lz.embed.browser, and the object doesn't exist. On the other hand drawview uses exactly that approach: > if (lz.embed.browser.isIE) { // IE can take a while to start up. this._hidden = false;

Finally I realized that lz.embed.browser can of course be accessed from the DHTML runtime, but it's not available in SWFx. Is that an undocumented "feature"?

On Sep 1, 2009, at 11:22 AM, Raju Bitter wrote:

I'm more looking for something like the browser dection we use in the sprite class, accessing the lz.embed.browser object. Has that been done?

Thanks,
Raju


On Aug 27, 2009, at 3:20 PM, P T Withington wrote:

lzx> lz.Browser.getVersion()
'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv: 1.9.1.2) Gecko/20090729 Firefox/3.5.2'
lzx> lz.Browser.getOS()
'MacIntel'
lzx>

On 2009-08-26, at 18:35EDT, Raju Bitter wrote:

Wouldn't the LzBrower class be the place to put an API for that?

On Aug 27, 2009, at 12:09 AM, Raju Bitter wrote:

How can I detect the browser version from within an OpenLaszlo app? For the CSS/HTML5 stuff I want to show the user a hint that an application is not supported in IE and other browsers.





Reply via email to