safari

Safari caches JSONP requests locally

I have a page that makes the same JSONP request multiple times in a single page load. In most browsers this works fine, but Safari caches the response locally until such time as the page is reloaded. Even when I send back a Cache-Control: no-cache header on the response. consider the following example code: var plcbCnt = 0; var plcb ...

Simple Mac Bash Script (Find/Replace)

Hey Folks, First, any support and help on this is largely appreciated. I'm trying to write a simple Bash script (completely new to this) to replace a file in a given directory. Basically, I need to write a script to replace the safari preference file, here's what I have..and what's not working for that matter: #!/bin/bash find /Fi...

@media screen & @media print support in Safari Windows

In Safari 3.1 and 3.2 on Windows I cannot get my CSS to work when wrapped in the media type @media print {} or @media screen {}. I have moved all my print CSS into the master css file following Paul Irish's recommendations for boilerplate http://html5boilerplate.com/ to reduce http requests. I have slightly modified the recommendation...

jQuery ajax problems with webkit browsers

Hello I'm adding some ajax features to a site and I have very strange problem. On webkit browsers the ajax request aren't working. I have no idea where is the problem. I noticed that if I leave only one ajax request the Safari(windows) is doing it right, but that its not what is happening to the Safari(Mac) and Chrome(windows). The javas...

why my webpages can't break line in Iphone browser ?

This is my website for mobiles to visit : m.looa.com If you got an Iphone,please visit it and you will find that the words don't break line . This only happens in Iphone's browser, it looks fine for android and almost all browsers for PC,including IE Chrome FireFox and even Safari(you can try that). I know this must have something to...

How can I add hotkeys with Safari extension

Can I listen to hotkeys with safari extension? I want to respond to Cmd+SomeKey with action done by extension, but I've read intro on apple developer and there is nothing about hotkeys. You can add custom buttons to the Safari toolbar, create bars of your own, add contextual menu items, display content in bars or tabs, and inject sc...

Jquery Load based on hash tag working only in Safari

Hello There, I am using a jquery function to take the value of the hash tag in the URL and load that URL into a div id'd 'inload_content'. As seen at http://www.divethegap.com/update/community/ (# When testing only use the 2 test videos at the bottom as the others are not connected to URLs yet. In Safari this works perfectly both on OS...

How to debug Safari silently failing to connect to a secure WebSocket

When doing new WebSocket('ws://server/'); Safari connects fine, but when using new WebSocket('wss://server/'); it completely fails (returns a null object). Worse, it fails silently - no errors in traceback (a custom Eventlet web server) or in the error console within Safari. Chrome works fine with both the secure and non-secure host. H...

safari javascript issue

attached javascript does not work in safari. this script displays a confirmation message before navigating away from the current page. surprisingly this works for the first time in safari (but not during subsequent submit). Scenario: user makes some changes and press submit button confirmation message displayed to user user decided ...

iPad - How can I make my UIActionSheet look like the thin one in safari?

The above UIActionSheet is thinner than the normal one. I took the screenshot from Safari when I try to bookmark some website. Mine or the default UIActionSheet in iPad looks like the following. It is thicker than the one in Safari, especially the border. How can I make my own UIActionSheet look like the one in Safari? Do I need to...

Safari - How To Automate The Reset Safari Items

Using Safari browser and finding one hurdle to making it my default browser - there is no default setting for clearing/deleting all the stuff you find in the menu's Reset Safari panel. I made an Automator routine using the 'Watch Me' to do this and quit safari - it works. But, I'd really like to not have the steps display while it's run...

Chrome, Safari ignoring max-width in table

I've got HTML code like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title></title> </head> ...

WebKit .NET Proxy Settings

Hi guys, I currently have a browser project which will allows users to select a proxy server. I'm using WebKit .NET by the way. However, when I tried changing my proxy settings in Internet Explorer(Registry), it doesn't seem to recognize the new settings. My other browsers seem to acknowledge the proxy, even safari. Anyone here tried ...

jquery .width() chrome and safari problem

I have set in css the height of an image to a certain value and the width modifies automatically so that the aspect ratio is preserved. I'm using the .width() jquery function to get the width of the image after the css resized the image. in Firefox and internet explorer this works great but in chrome and safari the width returned is alwa...

Does onHashChange work in Safari?

Does onHashChange or hashChange work in Safari? I tested it with Safari 4.0.4 on Windows 7 and it doesn't work for me. If it doesn't work, is there any solution to track if the hash has changed? ...

css border radius furry edges in earier version of safari

Hi, I am getting a wierd furry edge in earlier versions of Safari when using border-radius. I am using Panic Coda (I don’t know what rendering version they use) but it’s fine in my other version of Safari, which is version 5. The style: background: url(/images/arrows.png) no-repeat center right, -webkit-gradient(linear, 0% 0%, 0% 100...

Plugins + Extensions on Safari 5.0.1

Hey guys, My question is very simple: Is it possible to pack plugins into extensions for Safari? For instance, the exact NPAPI plugins which work on Google Chrome also work on Safari. However in Chrome I'm shipping the plugins as a part of an extension (a CRX package). This is needed because HTML and JavaScript is injected into a specif...

Javascript in Safari not always running

Hey Guys, Am having an issue with Safari. I have a basic script using jQuery that makes some changes to a form field and adds some behaviours to it. When I run this script on using the document ready method it's fine in Firefox but in Safari it doesn't always run the initial changes. I can hit refresh and get it running fine 4/5 times, ...

Javascript problem on Google Chrome and Apple Safari

Hi. I have a javascript that, when you finish to watch a video, it redirect you in another website. It runs good on IE and Firefox, but not run on Google Chrome and Apple Safari. Can anyone help me to find the problem? Many thanks. var currentState = "NONE"; var previousState = "NONE"; var player = null; function playerReady(thePlayer...

Why does this JavaScript work on Safari, but not Firefox?

I have the below HTML file. I tried the code on Safari and it was working fine. But when I tried this on Firefox, it’s not working.Can anyone suggest how to make it working on firefox? On click on undo button I want to retrieve contents from the jsp file. Thats working when I used this code on safari on my mac.. but when I open the same...