safari

How to avoid the unsaved form warning in Safari

Safari has a feature to prompt you if you're sure you want to close/refresh the page on which there are some forms which you typed into. This is useful in most cases, but in this case it's bugging me. I'm hijacking the "submit" event on some forms and sending them to the server via XMLHttpRequest. However, Safari doesn't know that, so w...

CSS/Webkit: Background Images for Table Row

For some reason when you apply a background image to a tr in Safari/Chrome it renders it as if the rule applies to every td. Firefox: Safari: I found this article discussing a fix: http://snook.ca/archives/html%5Fand%5Fcss/applying%5Fa%5Fback I was able to get it working in IE with spacer gifs but can't figure it out for Safari....

Shortcut for inspecting HTML documents in Safari 4

Can't find the shortcut for clicking on the magnifying glass for inspecting HTML elements in Safari 4. Any idea on this? (or any resource with a complete list of the web development shortcuts) ...

How to fix image maps in Safari? Broken when page is zoomed.

Safari 4 apparently has a serious bug with imagemaps - the clickable areas go out of registration when the page is zoomed to anything other than 100%. It pretty much renders image maps unusable. This is not my page, but it shows the problem; zoom in or out in safari and then click a shape: http://www.elated.com/articles/creating-image-m...

HTML5 <audio> Safari live broadcast vs not

I'm attempting to embed an HTML5 audio element pointing to MP3 or OGG data served by a PHP file . When I view the page in Safari, the controls appear, but the UI says "Live Broadcast." When I click play, the audio starts as expected. Once it ends, however, I can't start it playing again by clicking play. Even using the JS API on the aud...

li click events on safari?

This issue is specifically with Safari. <div id="list"> <ul> <li onclick="do_something();"><!-- block with stuff in it --></li> </ul> </div> When the above is loaded normally, the onclick applies to the entire li block. The problem is, later on when I use ajax to populate the #list div dynamically... $("#list").html('...

Space in html can't find it. Safari vs IE & Firefeox

Hi, I'm working on a website and in Safari it looks perfect (I Work on Mac). In firefox and IE it isn't looking good. http://www.d-votion.be/djnobels/djgentux/index.html Could someone help me? Greetings, Nico ...

Why instance of class WebBaseNetscapePluginView not respond selector in safari4 ?

I am developing a plug-in with Safari. I followed the adblocker sourcecode to swizzle the method: -(id)initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement: of class WebBaseNetscapePluginView but I found that didn't respond in Safari4. Why? ...

Why Webview prevent showing a webpage when click a swf?

Now I show a swf from web in my webview , but when I click the url address in the swf to show another page with my default web browser, I found the webveiw prevent to do it , Why ? How to allow it ?Thank you very much! ...

Save Web Archive with Cocoa

Hello, I would like to save a webpage programmatically with Cocoa to the hard disk as a webarchive like Safari. I've searched for any example programs from Apple yesterday, but I've only found a class reference at Apple Developers page for a webarchive class. I play a little bit with the webarchive class and unfortunately my solution d...

@font-face and font-variant bad idea?

if i use @font-face font and font-variant: small-caps for the same selector the font will fallback to the next system default font in safari. how do i get around that? ...

Add on in Safari and Firefox on Mac

Hello All, I want to create a toolbar and a button over this tool as an add on in Safari and Firefox. I never created one, so if anyone could suggest me what are actually required to create add on for them, it would be highly appreciated. I want to develop this add on for browser versions of Mac. Thanks, Rahul ...

Web workers and permissions - Cant't find variable openDatabase (Safari)

Hello everyone. I have some problems with Web workers in javascript. I would like to open sqlite database from worker and make sync, but it always ends up with error: Can't find variable: openDatabase Here is my code //index.html new Worker(worker.js) //worker.js openDatabase(...) Why worker doesn't have permissions to openDatabase...

How do I text-align:center php echo text in Firefox?

I don't see this question answered anywhere else here. Here's the code: <div class="copyright"> <h2 class="copyright unselectable" onselectstart="return false"> &copy;&nbsp;2009&nbsp;-&nbsp;<?=date("Y") ?>&nbsp;<?=PROJECT_NAME?> </h2> </div> It's aligning right in IE but not FF or Safari. It seems to not be taking into account the s...

Chrome and Safari XSLT using JavaScript

I have the following code that applies a XSLT style Test.Xml.xslTransform = function(xml, xsl) { try { // code for IE if (window.ActiveXObject) { ex = xml.transformNode(xsl); return ex; } // code for Mozilla, Firefox, Opera, etc. else if (document.implementation && doc...

Quicktime embed renders too light in Safari 4

I've embedded a quicktime video via: <embed src="http://iphone.broadersheet.com/wp-content/themes/broadersheet/images/iphone-tour.mov" type="video/quicktime" width="284" height="564" autoplay="true" controller="false" kioskmode="true" loop="True" wmode="transparent"></embed> and it renders perfectly in Firefox but in Safari it rend...

Does heavy traffic cause CSS malfunctions?

Hello all, I just launched my site yesterday and everything was working as is. I have a blogs community page, and a questions community page that each have a top blogger/top commenters section, as well as a top askers/top answers section. They all share the same CSS and have an image that holds user pics that use CSS to align properly I...

jQuery code working in Safari but not Firefox

Hi, I'm attempting to use a mixture of jQuery and CSS to make the sand in an hourglass appear to flow as you scroll down the page. I basically have two 'sand' images, and use jQuery to change the height of their containers as the user scrolls. <!-- Load jQuery --> <script src="jquery-1.3.2.min.js" type="text/javascript" charset="utf-8...

Safari rendering bug with CSS transitions

Hello, I'm experiencing an annoying bug with Safari while combining opacity changes on hover and webkit-transition (eg: http://cld.ly/55xc2). By the way, the bug isn't there anymore in latest webkit nightly builds and everything works fine on Chrome. Do you know any workaround to fix this? I hope Apple's going to correct it soon… Chee...

Safari Display Problem

the page http://wespeakforfreedom.com doesn't seem to display correctly on safari (so I have been told, I do not have Safari to test), the thing I find odd is that it displays fine on other webkit based browsers. From what has been described to me it sounds like a padding issue - any one have any ideas? ...