Re: Detect Safari Version
Re: Detect Safari Version
- Subject: Re: Detect Safari Version
- From: Dan Saul <email@hidden>
- Date: Thu, 13 Jan 2005 10:44:52 -0600
Well, since webkit isn't for java i'm not sure, however in objC you could use:
-stringByEvaluatingJavaScriptFromString
On Wed, 12 Jan 2005 23:10:11 -0800, Mont Rothstein
<email@hidden> wrote:
> In the DOM you want the navigator object. The userAgent property has
> the information you are looking for.
>
> I don't know Java, so I can't tell you specifically how to grab it, but
> that is where it is.
>
> So you know what you are looking the userAgent for Safari currently
> gives:
>
> "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.5.5
> (KHTML, like Gecko) Safari/125.12"
>
> Enjoy,
> -Mont
>
>
> On Jan 12, 2005, at 10:05 PM, Kevin Ballard wrote:
>
> > This is just a guess, but from the Cocoa side there's probably some
> > DOM manipulation selectors or something similar that are only in 1.2
> > or later which you could check for the presence of. I don't know on
> > the Java side tho.
> >
> > On Jan 13, 2005, at 12:30 AM, email@hidden wrote:
> >
> >> I have a java application which uses webview to show web content.
> >> The
> >> functionalities expected from my application shall only work if the
> >> Safari version is 1.2 or above.
> >>
> >> Is there any way to check the version of the Safari installed in
> >> the
> >> machine from the Java? If not then is it possible to find from Cocoa
> >> part(from the webview).
> >> this might be a trivia question, but the problem is driving me nuts.
> >>
> >> It would be better to know from the Java as the webcontent viewing
> >> options can be disabled.
> >>
> >> any help appreciated, thanks in advance.
> >
> > --
> > Kevin Ballard
> > email@hidden
> > http://www.tildesoft.com
> > http://kevin.sb.org
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Cocoa-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > email@hidden
> >
> > This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden