• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detect Safari Version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect Safari Version


  • Subject: Re: Detect Safari Version
  • From: Mont Rothstein <email@hidden>
  • Date: Wed, 12 Jan 2005 23:10:11 -0800

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:

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

  • Follow-Ups:
    • Re: Detect Safari Version
      • From: Frank Midgley <email@hidden>
    • Re: Detect Safari Version
      • From: Dan Saul <email@hidden>
References: 
 >Detect Safari Version (From: email@hidden)
 >Re: Detect Safari Version (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: continuing after fork() (Re: Problems with NSTimer and NSRunLoop/CFRunLoop)
  • Next by Date: Re: How do you set an image's background color to CLEAR?
  • Previous by thread: Re: Detect Safari Version
  • Next by thread: Re: Detect Safari Version
  • Index(es):
    • Date
    • Thread