safari

Distinguish Chrome from Safari using jQuery.browser

It seems jQuery.browser is able to identify webkit rather easily as of 1.4. But how can I use it to distinguish Chrome from Safari (and visa-versa)? ...

Flash UI component not being 'repainted' when user uses browser zoom (only on Mac/Safari)

Hi, I have flash component in a website, which shows a preview. There are some UI components overlaid on the preview to allow navigation. Unfortunately it seems that in Safari on Macs, there is a problem: When the user zooms in or out (using the browser based page zoom), my overlaid UI items disappear for some reason. This does not ...

Passing focus to Silverlight/Flash object in Chrome and Safari

There is a known issue with Safari and Chrome, when you can't pass a focus to plugin (Flash or Silverlight). There is also a question here at SO that asks how to solve it (marked as answered, though technically it's not the answer). I'm really concerned with this situation, since it totally breaks user experience . Do you know somebody ...

remove works but not hide?

hello there. creating a filter for a select menu and having a few problems! the first one is $("#filterContentMenu option:contains(a)").hide(); doesn't work but $("#filterContentMenu option:contains(a)").remove(); does. Actually this only seem to be a problem in safari! Works in firefox? ...

jQuery simplemodal not working well in Safari for Windows

Hi all, I am using Safari 3.0.4 on Windows, and when I go to the simpleModal examples, http://www.ericmmartin.com/projects/simplemodal/, they don't work. Specifically, they do make everything go grey and disabled, but no modal div appears. I can't find it by scrolling up and down the page, either. I can "close" the modality though by hit...

Safari 5.0 Extension Scripts Won't Run on Local Files

Hi, I wrote a very simple extension for Safari 5 that only outputs a single log message from a start script. This is the start script: console.log('start script running'); If I go to any internet page (eg. http://www.yahoo.com) the log message appears in the error console. But if I open any local html page no log message appears. By l...

how to autoscale a pdf document in mac/safari enviornment?

I am creating PDF file using ItextSharp V1.1.4322 in ASP.NET Version 2.0. Everything works fine in IE/FF/Safari browsers in windows as expected. In mac/Safari PDF file opens correctly but printout is wrong, cutting page contents. I want the page to auto scale automatic as in windows. ...

Why is the font size in Safari on Mac OS so much smaller?

I have a website which uses CSS for all of its styling, and in Windows, the line-spacing and font sizes are all consistant accross Firefox, Opera, IE, Safari, Chrome. I have just tried it under Firefox on the Mac (Snow Leopard) and whilst the fonts generally look a little more bold than on windows, the general sizing looks about the sam...

How to track iPhone orientation in google analytics?

We're getting ready to deploy a mobile version of our website and we'd like to track the iPhone orientation within google analytics. I'm guessing we should do this as a custom variable because I don't see any pre-defined way to track this under the mobile tab for analytics reports. I'm not sure how to detect the current orientation of th...

Sometimes in Safari the first click isn't sent to the popup

I used different methods including "onclick" and jquery. http://sky-walker.net/temp/test.htm On Safari (for Windows at least), the first click after a popup appears (alert, prompt or confirm) isn't handled by the popup... e.g. in my test trigger a popup then hover or click on the checkbox... the first click doesn't register with the "o...

using jQuery in Safari Extension

Hi, I am trying to make a simple Safari 5 Extension that just injects a custom javascript. Any ideas how can I make use of jQuery in this custom script, please? I only know it's possible, because it is mentioned on one of WWDC videos, but I don't know how to do it. Thanks ...

What does visibleContentsAsDataURL exactly do?

I am currently trying to build my first Safari extension. The SafariBrowserTab Class has a Method called "visibleContentsAsDataURL". I don't exactly understand what it does and can't get it to work. The docs just say: "Returns a data URL for an image of the visible contents of the tab." What does it mean? That I get the URL of a scre...

cross browsers css for curve,shadow,gradient

is such css library that i can use rather than have to manually use special tag for each browsers like below ? -moz-linear-gradient -webkit-gradient -ms-filter: "progid:DXImageTransform.Microsoft.gradient ...

where is Safari's Reader code?

Safari 5 has gotten a new feature: The Reader. It shows a simplified version of an article page with just the article itself (and not all the clutter around). It also merges multiple pages (if the article is split across multiple pages) to a single one. This is an extremely useful feature and I would like to port it over to Chrome. I w...

what are the differences in the WebKit nightly build binary and in the Safari binary?

I know what the projects are about: Safari is Apples browser. WebKit is the engine used in Safari (and in many other browsers) which is open source. The WebKit source code contains also code to compile it as a standalone application. You can download the nightly build of WebKit here: http://nightly.webkit.org/ I have compared some of th...

Can a Safari Extension react on the creation of a new tab?

I am currently writing my first extension for Safari 5. I can't find a reference on what events an extension can react. I want my extension to react on these events: when a new tab is created. when a new browser windows is created. when the URL inside a tab changes. Is this possible? ...

Invisible scrollbars on a position:absolute div on Safari 5 for Windows

Hello, I have a single div element in a page styled as follow: div {position: absolute; width: 340px; height: 480px; overflow-y:scroll} I use a simple jquery script to center it in the available width and height on window.resize event. The div is displayed and works perfectly on Safari 5 for Mac. On Safari 5 for Windows it works pe...

How to extract files from Safari cache on Windows Vista.?

I've managed to find the file Cache.db. When I open it, I see references to files I've cached while browsing, and I would like to extract those file, like you can do with IE of FF. Anyone has an idea on how I can get files from the blob data inside cache.db..? I'm on Windows, so Apple software are not an option... Thanks. ...

How to check if new Date("some date") was able to parse correctly?

I have the following code, which is supposed to try to parse a given date. If it fails, it defaults to the current date: var date = new Date(textbox.value); // Try to parse if (isNaN(date)) date = new Date(); // Default to current Now i'm using isNaN() to test if it was able to parse correctly, eg to check that new Date() didn't retu...

Safari not accepting Cookies while FF and IE does

Hi, i have a problem with the safari browser and our set-cookie. Safari is ignoring our set-cookies completely while FF and IE accept and send the cookies. The Cookie setting page is not a redirection, direct HTTP 200 with set-cookie. Is there a special character or malformed set-cookie that causes Safari to ignore the cookies complete...