How to obtain browser version in revWeb app?

Mike Bonner bonnmike at gmail.com
Wed Jun 1 21:24:34 EDT 2011


You can do this.

do "result = navigator.appName" in browser

at which point the result will contain "Microsoft Internet Explorer" if
thats the browser in use.

result = navigator.userAgent returns..
; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
for the version of IE i'm using.

there is also "result = navigator appVersion which for me returns..
5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET
CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0;
.NET4.0C; .NET4.0E)

Didn't test with firefox, didn't test with chrome since the plugin doesn't
work there for me. I'm sure there are quite a few other useful items that
can be queried this way.

On Wed, Jun 1, 2011 at 6:49 PM, Kee Nethery <kee at kagi.com> wrote:

> I see HTTP stuff in the dictionary for talking to a server and getting web
> pages. I don't see a way to query revWeb to ask it what browser it is
> running in.
>
> Kee
>
>
>
> On Jun 1, 2011, at 4:46 PM, Bob Sneidar wrote:
>
> > I think it's an http thing.
> >
> > Bob
> >
> >
> > On Jun 1, 2011, at 3:48 PM, Kee Nethery wrote:
> >
> >> It is possible to get any information about the browser running a web
> based livecode stack? If so, how? Didn't see anything in the dictionary.
> >>
> >> For example, Safari 5.0.5 or IE 7.2 or anything like that?
> >>
> >> Thanks, Kee Nethery
> >> _______________________________________________
> >> use-livecode mailing list
> >> use-livecode at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
>
> -------------------------------------------------
> I check email roughly 2 to 3 times per day.
> Kagi main office: +1 (510) 550-1336
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list