[Laszlo-dev] Browser detection out of an OL app
Raju Bitter
rajubitter at me.com
Tue Sep 1 14:28:12 PDT 2009
Good point, although that's only true as long as there are no Flash
bugs for specific platforms. And there are a few relevant ones,
especially on Linux. If someone needs to check for the OS, it's still
possible to that with flash.system.Capabilities.os.
But I agree, that checking on browsers is more important for DHTML, so
the use case for this information in SWF is so specific that the
object doesn't need to be accessible in SWF.
Thanks for your feedback!
On Sep 1, 2009, at 1:43 PM, P T Withington wrote:
> 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.
>>>>>
>>>>
>>>
>>
>
More information about the Laszlo-dev
mailing list