View Full Version : Basic Question - how to distinguish OSX/Classic in javascript ?


TK
07-22-2003, 10:45 AM
Hi,
I'm new to web creation for Mac clients. As you can see in some threads in
this NG, I have some other problems to develop a web application for Mac
clients. But I want to solve one very basic issue here, how can I detect
OS/Browser versions on Mac client? What I've learned in recent weeks is
that there are many differences between OSX and olders, so think I have to
have separated script code for those platforms. I'm attempting to write
script code for Internet Explorer only, not for NN and others.

I run a quick test to see navigator object and its properties on both OSX
and OS9, but couldn't see any difference. It seems that either IE5 for OSX
and IE5 for Classic have same version strings within navigator object.

Can anyone help me?
best regards,
TK

Harri Mellin
07-22-2003, 12:24 PM
In article <#V5h2YDUDHA.1912[at]TK2MSFTNGP12.phx.gbl>,
"TK" <tk_tkanda[at]hotmail.com> wrote:

> I'm attempting to write
> script code for Internet Explorer only, not for NN and others.

Ms Ie for mac is dead and mac os x users are going over to safari

--
-------------------------------------------
Swedish Webcams <http://zap.to/webcams>
-------------------------------------------

TK
07-23-2003, 04:23 AM
Thank you very much guys!

As per Rick and Mickey's suggestion, I went to look closer at version
strings. Yes I can see a bit of difference in navigator.userAgent.
Test page shows "MSIE 5.21" on OSX, but "MSIE 5.0" on OS9.2.

ITOH, I think it may worth that consider to support Safari browser, as Harri
mentioned.
However, I'm wondering whether I can expect enough population of Safari
users.
What do you think guys? Time is not yet ripe for it?

TK

"Mickey Stevens" <mickey.stevens[at]mvps.org> wrote in message
news:BB432DCB.17970%mickey.stevens[at]mvps.org...
> Internet Explorer 5.2 - 5.2.x are only for OS X.
> Internet Explorer 5.1.5 - 5.1.x are only for Classic.
>
> Internet Explorer 5.1.3 and 5.1.4 were made for both platforms, but both
are
> somewhat outdated. Older versions (4.0, 4.01, 4.5, 4.51, 5.0) were
Classic
> only.
>
> On 7/22/03 4:45 AM, in article #V5h2YDUDHA.1912[at]TK2MSFTNGP12.phx.gbl, "TK"
> <tk_tkanda[at]hotmail.com> wrote:
>
> > Hi,
> > I'm new to web creation for Mac clients. As you can see in some threads
in
> > this NG, I have some other problems to develop a web application for Mac
> > clients. But I want to solve one very basic issue here, how can I detect
> > OS/Browser versions on Mac client? What I've learned in recent weeks is
> > that there are many differences between OSX and olders, so think I have
to
> > have separated script code for those platforms. I'm attempting to write
> > script code for Internet Explorer only, not for NN and others.
> >
> > I run a quick test to see navigator object and its properties on both
OSX
> > and OS9, but couldn't see any difference. It seems that either IE5 for
OSX
> > and IE5 for Classic have same version strings within navigator object.
> >
> > Can anyone help me?
> > best regards,
> > TK
> >
>
> --
> Mickey Stevens (Microsoft MVP for Office:mac)
> PowerPoint FAQ featuring PowerPoint:mac: <http://www.pptfaq.com/>
> Entourage Help Page: <http://www.entourage.mvps.org/toc.html>
>