safari

XHTML+XML plus XSL plus jQuery don't work in safari

This is my XHTML/PHP file: <? header('Content-type: application/xhtml+xml')?> <?="<?xml version=\"1.0\" encoding=\"utf-8\"?>"?> <?="<?xml-stylesheet type=\"text/xsl\" href=\"ie-fix.php\"?>"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.o...

Implementing a WebSockets server: WebKit sends invalid UTF-8 Strings... sometimes

I'm trying to implement a WebSockets server in C and so far, everything seems to be fine. I tested my implementation on Mac OS X 10.6.4 using Safari Version 5.0 (6533.16) and Google Chrome 5.0.375.70. As they both use WebKit, they unsurprisingly both yield the same results: Handshake works and sending UTF-8 string from and to my server w...

Examples of -webkit-appearance settings

Does anyone know of a website or blog that demonstrates - with functioning examples - all the various -webkit-appearance CSS settings? The trial and error approach is getting old. Bonus points if there's further explanation of various of these -webkit styles ...

Single PHP "exit;" statement prevents HTML5 video in Safari

Bizarre bug: in a PHP script that serves video files, I have a few test conditions (authenticate token, make sure file exists, etc.) before sending a "video/mp4" header and outputting an MP4 file. If any of the tests fail, $fail is given a non-false value. At the end of the tests there's this if statement: if ($fail) { exit; } T...

Post/Redirect/Get in Webkit causes a full page reload

It seems that in Webkit-based browsers (Chrome and Safari) when a Post/Redirect/Get is performed on the server, the entire page (html + images + css, etc.) is redownloaded. It appears the same as if you reloaded the page. There's been a question (and somewhat of a solution) posted in the Google Chrome Help: http://www.google.com/support...

How can you create a local JavaScript database tied to a Safari-5 extension?

I was playing around trying to create a small safari extension, most for the fun of it and to see what you could do etc. Anyways I was thinking about storing some data for my extension in a local database, so I always would have it where I needed it, across page loads. I searched a bit on google and found this snippet from the Safari R...

Safari not always rendering page

Having an issue where Safari will not always render the page. When it does, it doesn't always show all the images. Issue happens with all the sites run off one set of code. One site is http://www.wfar.com/. I check the Apache access log and can see the hit, and it passes back a 200 and roughly 8,000 in data. Nothing shows in the error l...

VideoPlaylist iPhone

Hello, if I open a online Video file like this: [UIApplication sharedApplication] openURL:[NSURL URLWithString:url]]; the App will closed ... is it possible to create a playlist for the videoplayer application? ...

css image in not showing in safari ?

the following code is not work in safari, but properly work in IE. <style> .my { background:url("../../myproject/images/add.gif"); width:100%; height:22px; background-repeat: no-repeat; } </style> <span class="my"> </span> ...

Myriad pro font does not appear on Safari

Hi all I have an asp.net page with an asp.net menu. I defined the font in the menu items to be Myriad Pro. In IE and Firefox it appears normally, but in Safari the menu items appear blank. when I changed the font type to another font it worked fine. so is there a way to make the Myriad Pro font appear on Safari. thanks ...

Safari 5 bug - Radio button's checked="checked" attribute is ignored when loaded via AJAX

Strange bug with Safari happening when a radio button input is loaded via AJAX. The relavent code is <input type="radio" name="team" value="231" style="width:auto;" checked="checked"/>Team 1 <input type="radio" name="team" value="232" style="width:auto;"/>Team 2 When this code is loaded with plain old html, the first radio button ...

Issue loading external files (CSS and JavaScript) in Safari

I'm having a bizarre situation here where my external site files, both JavaScript and CSS, are being interpretted as somehow corrupt on Safari browsers. The same site looks fine in Internet Explorer, but on Safari the javascript and css are being completely ignored. If I look at the files through the Inspector, I can see that Safari view...

Safari 5 not sending all cookies back to the server

I'm seeing this issue with Safari 5 (actually it has been prevalent since at least 4.0.5), where it seems that it does not set cookies properly. The site works perfectly fine for Firefox, IE, and Chrome. However, I can verify that the cookie is being properly set by looking at Safari's cookies plist that it uses. On Windows 7 it's sto...

Use Javascript to get selected text in Mobile Safari

So I'm working on a bookmarklet where it would be ideal for me to grab the content selected by the user using the "loop". Both window.getSelection and document.getSelection are functions that I can call, however, they always return an empty string. I believe the problem is that when you tap on the bookmark icon in Mobile Safari, the sel...

Font rendering issue between different macs : safari

Hey All, Our site seems to render smooth fonts correctly on some computers ( looking at on mac's ), but doesnt render the fonts smoothly on other's. Only seems to happen on Safari (v 5.0), and is being tested on mac, macbook pro and desktop. Anybody seen anything like this before? Thanks for any suggestions, seems to be an odd bug ...

radeditor issue with safari

hi... i have a radeditor in my webform and it posts back. if i type any thing in the editor and press enter key for new line and then use any control in the page which reloads the page, then the next line character in the editor gets replaced by $0 and other text remains same as earlier. it happens in SAFARI. Ex. aasdads dsdsds the a...

Flex application suspended while in the background using Safari on Mac

Users of my Flex application report that sometimes the application is freezed when the browser window is minimized or they select another active tab over it. In this suspended state, the application receives no CPU share and all network connections it uses are closed. When the browser window is restored, the application is resumed. This ...

How to get sIFR to reload fonts each slide using the jquery.cycle plugin?

Hello, I'm using the jQuery library "cycle" to rotate a bunch of div's at the top of my page, within these div's i have a h1 tag, which is styled with sIFR. see example here: 2011 Website The problem is on webkit browsers, the h1 tags which aren't visible on page load aren't rendered, after doing a bit of research on this, it seems i ...

Is there any shared state between iPhone apps and mobile safari?

I have a website and a native iphone app. The app registers a custom protocol. I'd like the site to automatically redirect to the protocol when appropriate, but only if the user has the app installed (to avoid an annoying dialog). That means I need to write some state from the app that I can read in mobile safari to mark the app as insta...

How can I test my website in Safari 4 for Windows?

Ok, so the marketing guy that I deal with for our website has reported that things aren't displaying right in Safari... And of course, it works fine in Safari 5. Are there any tools out there that will let you simulate browsing with Safari 4, for example? Or even better, does anybody have an install for Safari 4 for Windows floating ar...