safari

CSS image down-scaling

Hi, I'm putting together a book flip where I flip pages using CSS, JavaScript and HTML. It works very well, except for this one thing. Every image has a block-level parent. The block-level parent's dimensions has the same ratio as the image but it's scaled down to fit inside the window. Every image has a width:100%; and height:100%; de...

Disabling iPhone keyboard for textarea in web application

So I have multiple textareas on my page that are editable depending on a users status. The problem is that even when a user clicks on a textarea that they are not allowed to edit, the keyboard comes up on mobile safari. The user can't actually edit the textarea, but it's really annoying/looks bad. I was thinking of maybe making it dis...

Chrome and Safari add 'border line' to img with css fixed height and width

I have a small problem with rendering a img tag with an associated with a class. I've recreated the issue with a simple html page. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test for image problem</title> </head> <body> <style> .image { float: left; cursor: pointer; height:15px...

Safari 5 don't print jpg images in Windows

When I try to print jpg images in Safari (Windows) it print a blank page. Even if I open the JPEG directly in the browser, it prints nothing. Any solutions are welcome. ...

JS/overflow:hidden performance issues in Safari on iPad/iOS

I am working on a Google Maps-like scrolling/panning system. The system is supposed to be a lot simpler than the "original" (no zooming) and as such is built in a quite straight forward fashion: There is a containing div representing the viewport with overflow set to hidden and a fixed size This div contains another div that's being pa...

anchor tag click listner in Safari

I've posted a question of how Safari behaves for the anchor tag click event here on Apple's Forum. It has not gotten any answers as of posting here. http://discussions.apple.com/thread.jspa?threadID=2581038&amp;tstart=0 I'm asking developers here at Stackoverflow to take a look and provide their intelligent comment how to circumvent th...

How do I correctly load and HTML embed password protected files?

I have an Apache password-protected directory filled with text files and movie files. Currently, I load the contents of the text files using cURL, passing the username and password information with CURLOPT_USERPWD. For the movies, I set the OBJECT and EMBED src's to http://username:[email protected]/file.mov. In both cases, the userna...

Detecting rendering completion in Webkit-based browsers (Chrome, Safari, etc)

From page Javascript, is there any way to know when a Webkit-based browser (particularly interested in recent Chrome, but a generic solution would be nice) has finished drawing the page, and/or has finished resolving all styles? Mozilla browsers have the MozAfterPaint event that's quite handy for this sort of thing. ...

Max image width in Mobile Safari? Getting unwanted downscaling on panos

I want to display very wide, panoramic images in Mobile Safari (iPhone, iPod, iPad). These work fine in OS X Safari and in other browsers, but on Mobile Safari there seems to be a limit on the maximum image width. Consider this web page: http://basepath.com/public/test1.html with this source: <!DOCTYPE HTML> <html> <head> <meta name ...

iPhone Web app cache control for sensitive data

I am in the process of investigating whether it is possible to prevent mobile Safari from caching certain file. I went through a few posts about controlling caches in SO (e.g. meta tag, HTTP headers), and a few blog post. This one seems to implies that components are not cached unless either Expires or Cache-Control in the response heade...

Videos In Safari Render Page Incorrectly

I have a really strange issue. If I insert a flash video from YouTube, BlipTV, JW Player etc. the text on the page is jagged and the links from the "Pages" drop down menu that overlays the video are all bunched up. This problem only occurs in Safari, you can see it for yourself here: http://ghostpool.com/wordpress/reviewit/pages I canno...

Is it possible to get UDID from iPhone safari browser?

I need to retrieve UDID (or any other device unique id) from iPhone safari browser (through cookies or request/response header or any other way). Is it possible if yes how? thanks -Z ...

jQuery animate not working in chrome/safari/ie

I have written a few lines of jQuery to animate a div to the left/right depending on mouse movements $(".galleryNav").mousemove(function(e){ $("#status").html(e.pageX +', '+e.pageY); if(e.pageX > 1100 && e.pageX < 1170){ $(".galleryNav").animate({marginLeft:"-60px"},{queue: false, duration: 450}); } if(e.pageX > 410 && e.p...

Scaling an iframe with webkitTransform in Safari creates white border

I have a simple html page in an iframe that I am trying to scale with an html5 input range slider. it creates a white border inside the iframe, what looks to be a doubling side effect. It works perfect in chrome(6.0.472.59 mac), but not in safari (5.0.1 mac). here is a link to live demo - http://dl.dropbox.com/u/1031653/safari-bug.html...

Safari 5 HTML Iframe not working properly with URL + Params

Hi all, I have an URL in IFRAME with parameters like this: <iframe src="http://www.example.com/id=123&amp;place=123"&gt;&lt;/iframe&gt; Works perfectly on FF3+, IE6+ (believe in me) and Safari 4, but in Safari 5 is different. S5 changes the URL to http://www.example.com/id=123 &amp; place=123 Someone knows how can I do a workaround...

jquery ajax load() does not load internal css for webkit browsers

The css part is totally not reflected in the output (for webkit only, others ok), it is as if no css was defined, javascript works tho... Ajax call $("#output_area").load("abc.html"); abc.html sourcecode: (Angle brackets are omitted) !DOCTYPE HTML html head style type="text/css" css.. css.. ...

as3 & Safari: External Interface and Callback woes - window.opener == null

So i have a simple set up. index.php which embeds myswf.swf into the page using swfobject 2. myswf wants to open a new window to interface with an external website - in this instance paypal. (for what its worth, this problem exists even when using documents on my own server - so its not the whole paypal thing) When the process has fin...

FadeIn javascript function in Safari not working but FadeOut works :(

So I've made custom function for a game I'm working on, one being fade in the other one fade out. The problem is fadeOut works, but fading back IN does not... strange. Any clues? See code below. THIS WORKS: fadeOut:function(o,duration) { o.style.opacity = 1; o._anim = function() { if(o.style.opacity <=0) ...

onmouseover issues with Safari

Hello Everyone, I am trying to get a onmouseover and onmouseout effect in a xhtml page for my navigation menu. This code only works in Firefox, but nothing else. Can someone please tell me how to get it to work on all browsers? Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D...

HTML5 Cache Manifest in Mobile Safari

I've setup an HTML file with a cache manifest, an HTML5 doc type, and verified the manifest file is returning the correct mime type. The file, however, does not cache and therefore does not work in offline mode on Mobile Safari on the iPhone. The simple HTML file is at the URL below. http://www.joeldare.com/i/calories/new/index3.html ...