safari

WebKit and Opera won't load from this server when it's in a frame

This site loads fine in Firefox, but in WebKit browsers (Safari and Google Chrome) it won't load the frame, and in Opera I get this error: "The Web site does not permit its content to be displayed in a frame. It must be displayed in a separate window.". I don't expect to be able to actually fix this, as I don't have control over the fram...

HTML5 audio with PHP script does not work on iPad/Iphone

Ok, I'm trying to play an HTML audio code on iPad but does not work. I created one PHP script to send to the MP3 request to the HTML5 audio code mp3_file_player.php?n=mp3file.mp3 The player is here: http://www.avault.com/news/podcast-news/john-romero-podcast-episode-80/ You will see that works on every HTML5 supported browser eve...

selecting text by ignoring inner Elements of div tag javascript

<html> <body> <script language="javascript"> function getSelectionHTML() { var div = document.getElementById("myDiv"); if (document.createRange) { var textNode=div.firstChild; var rangeObj=document.createRange(); rangeObj.setStart(textNode,0); rangeObj.setEnd(textNode,5); div .innerHTML =...

Safari Web Inspector is not updating when I update an element with ajax

I have a checkout page http://www.oipolloi.com/oipolloi/shop/viewbasket.php with multiple ajax calls after certain items update (EG look up postage cost when country is changed, then update discount boxes etc). I've asked for help in the past about the best method of making sure ALL calls have returned before allowing the form to be subm...

Preventing an <input> element from scrolling the screen on iPhone?

I have several <input type="number"> elements on my webpage. I'm using jQTouch, and I'm trying to stay fullscreen at all times; that is, horizontal scrolling is bad. Whenever I click an <input> element, the page scrolls right, showing a black border on the right of the screen and de-centering everything. The inputs are offset from the le...

Selenium RC: How to click buttons that use onclick window.location?

I have a button (outside of a form) that redirects to another page using the onclick attribute that calls window.location to redirect the user to another page. This time I can't change the HTML. I am using Safari 4 for testing. How can I click a button that uses the onclick attribute and window.location to redirect using Safari 4 and Sel...

iPad Safari's mapping of mouse events to touch events in image-maps

My website makes extensive use of image-maps. The images are of pages from a medieval manuscript. The mouseOver event of the AREA tags has a tooltip attached to it, which displays a modern typographic transcription of the ancient script for the line the mouse is hovering over. I just checked my website out on the iPad at the Apple stor...

How can I test my website in an old version of Safari on OS X?

Apple doesn’t seem to offer downloads of older versions of Safari, and I’m not even sure they would install on Mac OS X, as Safari seems to be part of the OS like Internet Explorer is on Windows. Is there any way to test my website on old versions of Safari? I need to fully test (i.e. click around, try out JavaScript), so a screenshot s...

Open URL with Safari no matter what system browser is set to

In my objective-c program, I need to open a URL in Safari no matter what the system's default browser is. That means that this won't work, because it could launch Firefox or whatever other browser: NSWorkspace * ws = [NSWorkspace sharedWorkspace]; [ws openURL: url]; I think I'm close with this: [ws launchAppWithBundleIdentifier: @"co...

A way to correct background scaling in iPad's Safari?

Hi, I have a website using a huge background image (2000x1500) in a div container (100% x 100%). When I open that site on Safari on an iPad it gets scaled down (~40%) in a different proportion than the content (~80%). I moved the background to an img-tag in a div with 100% width and 100% height and an overflow setting "hidden". Exactl...

Turn off grey box when mousedown in Mobile Safari

On Mobile Safari, when you click on an element it gets a grey box around it between mousedown and mouseup. How do you turn this off? ...

mouseOver event-mapping on iPad Safari with webkit-user-select: none

I don't have an iPad yet to find this out; have had only a brief opportunity to look at one at the Apple store. Could someone please describe what, if anything, happens to the mouseOver event of an image-map area when the image-map|area has had user-select disabled with "webkit-user-select: none" in the CSS, as described here in section...

Website Causes Mobile Safari Crash (Replicable)

For some reason http://shirazraqs.com is causing mobile Safari to crash. I've never seen anything like it and it's 100% replicatable so it's a bug on the site. I've already tried ripping out all of the javascript but the bug persists even then. Any other troubleshooting advice? Better yet, has anyone heard of this? I've been unable ...

AppleScript to open URL in Safari crashes for Flash-based websites

I'm trying to open a URL in Safari. It works fine for websites without Flash embedded, but crashes Safari for Flash sites. Example (this WORKS): tell application "Safari" to open location "http://google.com" This CRASHES when Safari is not already running: tell application "Safari" to open location "http://grooveshark.com" Two thi...

How to fix flicker when using Webkit transforms & transitions

I have a very simple demo working that uses Webkit transforms and transitions for smooth horizontal scrolling between 'panels' (divs). The reason I want to go this route as opposed to a Javascript driven system is that it's for the iPad and Javascript performance is quite poor, but the css transforms and transitions are smooth as silk. ...

location.href in javascript ?

javascript: location.href("somefile.php"); // successfully working with IE location.href = "somefile.php"; Ques 1. first code is not work with Safari. Why? Ques 2. What is the difference b/w these codes. Thanks, ...

step attribute not working with HTML5 <input type="range"> on Safari

Are there known issues with range inputs not working fully on Safari? I have the following input element: <input type=​"range" min=​"0" max=​"360" step=​"0.0001" value=​"0">​ On Chrome, the input goes according to the step variable. On Safari, it only goes by integer values. Even setting the step to 10 still makes it go by increments ...

Trouble with Canvas rendering in Safari/Opera

Been banging my head against this one for a while, and figured I'd turn to the experts for some advice. I've made a jQuery snippet that grabs the values from a table and plots them in a line graph on a canvas element (also generated by the JS). All's well in Firefox and Chrome, but Safari and Opera aren't displaying the plotted points. ...

How do I use CSS transformations to slide a div on screen?

Hi, My web page has two divs on it, A and B. Div A is visible, Div B is hidden. When the user clicks a link in div A, I want to "slide" div A off screen (leaving via the left edge), and slide div B on screen (entering via the right edge). I've found that jquery animations are very slow on the ipad, so I want to use the webkit CSS anim...

How do I block Safari users from my website?

I would like to block all users of Safari from visiting my flash game web site. I would like them to see a picture of someone being punched in the face instead of the games. My understanding is that you can use JavaScript to do it, but I don't want to use some heavy framework like JQuery. Is there a way to do it in like a single line ...