[Laszlo-dev] Browser detection out of an OL app
Raju Bitter
rajubitter at me.com
Tue Sep 1 04:24:36 PDT 2009
The simplest workaround is to add a JS function to the embedding page
passing back params like browser.OS, browser.version, etc. into OL.
On Sep 1, 2009, at 12:28 PM, 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.
>>>>
>>>
>>
>
More information about the Laszlo-dev
mailing list