You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by scott matheson <sc...@matheson.it> on 2018/01/03 13:51:04 UTC

Checking browser version form Flex

Hi
    I tried some code  to check the browser versions, but i get back a NULL

userAgent = ExternalInterface.call("window.navigator.userAgent.toString");


following this https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator <https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator>

any one point me in the right direction 

Scott

Re: Checking browser version form Flex

Posted by Javier Guerrero GarcĂ­a <ja...@gmail.com>.
Not sure, but try this:

Define a wrapper function in your javascript: getInfo() {  return
window.navigator.userAgent;
/* it's already a string */ }

And invoking userAgent = ExternalInterface.call("getInfo"); instead from
Flex.

On Wed, Jan 3, 2018 at 2:51 PM, scott matheson <sc...@matheson.it> wrote:

> Hi
>     I tried some code  to check the browser versions, but i get back a NULL
>
> userAgent = ExternalInterface.call("window.navigator.userAgent.toString");
>
>
> following this https://developer.mozilla.org/en-US/docs/Web/API/Window/
> navigator <https://developer.mozilla.org/en-US/docs/Web/API/Window/
> navigator>
>
> any one point me in the right direction
>
> Scott