safari

How do I detect a keyboard modifier in a bookmarklet?

Is there a way to detect if the user is holding down the shift key (or other modifier keys) when executing a javascript bookmarklet? In my tests of Safari 3.1 and Firefox 3, window.event is always undefined. ...

Is Http Streaming Comet possible in Safari?

By HTTP Streaming Comet, I mean the "forever iframe" / "forever xhr" variations that don't close the connection after data has been pushed from the server, as opposed to standard polling and long polling which close and resend a new request for every server push event. I looked at the dojo.io.cometd package and it seems they only have p...

How do I set cookies from outside domains inside iframes in Safari?

From the Apple developer faq Safari ships with a conservative cookie policy which limits cookie writes to only the pages chosen ("navigated to") by the user. By default Safari only allows cookies from sites you navigate to directly. (i.e. if you click on links with the url of that domainname). This means that if you load a p...

Disable anchors in Chrome/WebKit/Safari

Consider the following code: $("a").attr("disabled", "disabled"); In IE and FF, this will make anchors unclickable, but in WebKit based browsers (Google Chrome and Safari) this does nothing. The nice thing about the disabled attribute is that it is easily removed and does not effect the href and onclick attributes. Do you have any su...

Does Google Chrome display pages the same as Safari?

Given that Chrome and Safari use webkit has anyone yet found anything that renders differently on Chrome than Safari? Is there any reason at the moment to test sites on both, or would testing Safari be sufficient for right now? ...

CSS floated divs with form elements disappear in Safari 3 on a mac

I'm roughing a layout together and doing some browser testing. Never came across this issue before, check out the contact form in the footer of this page http://staging.terrilynn.com/fundraising/ There is a div with a width of 298px floated to the right that comes first in the source order. It is followed by several other divs, each wi...

Style sheet images aren't reloaded by Firefox or Safari

We have found out that Firefox (at least v3) and Safari don't properly cache images referenced from a css file. The images are cached, but they are never refreshed, even if you change them on the server. Once Firefox has the image in the cache, it will never check if it has changed. Our css file looks like this: div#news { background...

IE: Choose a digital certificate from a blank, empty list

I've created a web application that I've hosted with IIS 7 on a Windows Server 2008 machine. I've loaded a security certificate for secure.xxxxx.com. When I browse to the web site with Microsoft Internet Explorer, I get this prompt: Choose a digital certificate Identification The website you want to view requests identificati...

Safari/WebKit table over-run when using whitespace: nowrap

Having a strange rendering issue with Safari: I have a table inside a div. Inside the table <td> I have lots of div's floated left. So the normal display is all of the divs within the td stacked up to the left until they fill the width, then flow to the next line, and so forth. So something like this: |===========================| | ...

Pattern for wrapping an Asynchronous JavaScript function to make it synchronous

I'm working with a JavaScript API where most of the functions are asynchronous. The API is the WebKit JavaScript Database API which is a binding to a subset of functionality to manipulate SQLite3 databases. I understand the design decision to make things async as to not block and provide a responsive user interface. In my situation I ...

Cross-Platform Way of Creating Safari Webarchives

I've been searching around and haven't found any reference to tools that can create Safari's webarchive format. Does anyone have pointers to code for creating this format, or at least a format reference documentation? Ideally I'd like to build a tool that takes a directory and splits out a webarchive, for loading into a iPhone. ...

Open a .webarchive on the iphone?

Hi there; Does anyone know if you can programmatically open a .webarchive on the iPhone? A .webarchive is Safari's way of packaging up a webpage and it's associated resources into a single file. I tried creating one and browsing to a link to one in mobile safari, but it didn't work.... Note: I was kind of hoping this could be done wi...

How to disable phone number linking in Mobile Safari?

Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is turning that into a phone number link. Is it possible to disable this behavior for a whole page or an element on a page? ...

CSS and Safari/Chrome

I've been trying to modify the following menu to make it look indentical in IE, Firefox, and Safari/Chrome but I can't seem to get it to look right in Safari/Chrome. Could anyone tell me how to fix it? When viewed in Safari or Chrome, notice that the menu is ignoring the padding. View flickr-like menu Thanks in advance! ...

ASP.NET Container-Specific Master Pages for Safari or Chrome

Has anyone been able to create Container-Specific Master Pages for Safari or Chrome? I can't find any ".browser" files for either of these. How often is the %SystemRoot%\Microsoft.NET\Framework\version\CONFIG\Browsers directory updated? Thanks ...

Disabled input text color

Hi The simple HTML below displays differently in Firefox and WebKit-based browsers (I checked in Safari, Chrome and iPhone). In Firefox both border and text have the same color (#880000), but in Safari the text gets a bit lighter (as if it had some transparency applied to it). Can I somehow fix this (remove this transparency in Safa...

Can I close the iPhone browser using JavaScript

In the iPhone is there a way I can use JavaScript to close the browser and return to the home screen? After the last page a wizard I am calling out to another iPhone app (ex: maps) and I do NOT what the user to come back to the browser screen when they are done. My backup plan is to have a "Complete" page but that is not the best experie...

Using AppleScript to grab the URL from the frontmost window in web browsers: The definitive list

I built a widget that grabs the URL from the frontmost window in Safari, then allows you to shorten it using the tr.im API. Works sweet as. I want to make this more flexible, so am investigating how to grab an URL from other browsers. Here's the AppleScript that works in Safari: tell application "Safari" return URL of front documen...

Hiding Safari User Interface Components on iPhone

In an attempt to hide the Safari UI components for an web-app bookmarked as a Homescreen Icon. I am using this meta tag <meta name="apple-mobile-web-app-capable" content="yes" /> as specified on iPhone Dev Center but the address bar and toolbar are still there when launched from the home screen icon. What do I need to do different? ...

linking to network share with safari

I am trying to dynamically generate links to files on a network share that will work in both IE and safari. In IE, doing href=\\networksharename\foldername\filename works fine, and we thought this worked fine on safari in our initial testing, but our safari users are reporting page cannot be displayed. These are pdf files. Am I missin...