safari

Baffling Safari Javascript Issue

My code below works in firefox perfectly..but not in Safari. When I use the Safari debug it simply says there is a parse error, just after the first opening curly bracket { function setVals4(class,val) { var array = document.getElementsByTagName("select"); for (var g = 0; g < array.length; g++) { sel = array[g] ...

Can you play a <video> inside the page with Safari iPhone?

I would like to play a video from inside the rendered page with an iPhone/Safari. When I put a <video>, it's always opened and played in a separate full-screen Quicktime window. Is there a way to play the video directly from the page? (a similar question http://stackoverflow.com/questions/751627/iphone-play-video-not-in-full-screen-mod...

non-Flash games in safari/firefox/chrome

Suppose I'm writing a 2d tile based MMORPG. Furthermore suppose I hate flash. Lastly, suppose I only need my code to run in the latest safari, latest firefox, and latest chrome. What are the limits to what I can and can't do? (Are there examples of good game engines that only require a recent web browser)? Thanks! ...

Is the alt attribute for img tag in HTML not supported by Safari on Windows?

When I use the alt attribute with img tag in Safari on Windows, instead of displaying the alternate text, Safari only shows a "?" in a box. Is this a bug in Safari on Windows, or Safari is missing this feature. ...

Multiple Html <head> in the browser , causes by DreamWeaver bom

Hi, I am using DreamWeaver to code xHtml docs. in the program the code is valid but when I upload it in the inspect element I see double <head> tags and when I right-click to see the source file it seems o.k. Is it because I'm using dreamweaver? what can be wrong? the first error is : "Extra <html> encountered. Migrating attributes bac...

Jquery animated overflow element shifts in Safari

I am developing an annual report site which needs to be compatible with major browsers such as IE, FF and Safari at least. I have a couple of issues with the jquery effect. I have added a jquery slide reveal effect to the page which partially shows the main content div for a couple of seconds then it animates to reveal the rest of the c...

iPhone Safari Web Application not using cache at all?

Hi, guys, I've been developing an iphone web application for a while, and encountered a weird problem: when open the web app in safari(with safari chrome, not starting it from home screen), safari can generate proper "If-Not-Modified-Since" and "If-None-Matches", so the server simply gives 304 Not Modified to speed up the process. howe...

Tornado streaming: flush() lagging on Safari & Chrome (Firefox is fine)

On Safari and Chrome, I won't be able to see flush() updates updating live on my page until after a certain number of flushes, or sometimes it hangs altogether on Safari. Flush updates work immediately on firefox though. I'd like to know a couple things: 1) Why does Safari and Chrome lag out at the beginning with the flush updates, an...

Equal Height not working in Safari (jQuery)

$.fn.equalHeight = function () { var height = 0, reset = $.browser.msie ? "1%" : "auto"; return this.css("height", reset).each(function () { height = Math.max(height, this.offsetHeight); }).css("height", height).each(function () { var h = this.offsetHeight; if (h > height) { $(this)...

CSS for Safari 4.0 but NOT Google Chrome

Dear StackOverflow users, I'm having a problem with CSS. The style it's correctly applied in all browsers (IE6/7/8, Firefox 3+, Opera 9.5+, Google Chrome 3/4) but in Safari 4.0 it is not. If I use: @media screen and (-webkit-min-device-pixel-ratio:0) { #blaat { margin: 1px 0px; } } I can make work in Safari, but then it breaks in ...

Determine current Mac Safari web page using Python

Is there a way to determine programmatically, using Python, which web page is currently active in Safari? ...

Safari Blank Page Umbraco Driven Site

Hi I am running a site using Umbraco 4 In safari(mac) when i refresh the page i get a completely blank page, the page appears to have finished trying to load I'm using alot of java-script so I tried to removing all javascript but the error still persists. the site is here http://www.dreamguts.com I would really appreciate any inpu...

what is the code example site about 'Safari DOM Extensions'.

see this: http://developer.apple.com/safari/library/documentation/appleapplications/reference/SafariJSRef/index.html#//apple_ref/doc/uid/TP40001482 they are : CSSRule Additions Document Additions DOMApplicationCache DOMWindow Additions GestureEvent HTMLAudioElement HTMLMediaElement HTMLVideoElement Touch TouchEvent TouchList WebKitAni...

If I have this code in the iPhone Safari or Android Browser...will it be slow?

<div class="result"> <div class="thumbnail"> <img src="80x80.png"> </div> <div class="name"> Alex Hong </div> </div> The page will have 400 of these! A list of people and their thumbnails, all different. I will use JQuery LazyLoad, so that not all images are downloaded immediately. (The images are only down...

Blogger issue with custom background images on Chrome and Safari

This is weird, the site in question is blog.andrebatista.info and it is a hosted at blogger.com. I'm trying to make the blogger template look the same as the one in my main website, www.andrebatista.info. For some reason if I go directly to the blog address Chrome and Safari fail to display all of my background images... all of them. H...

ff safari space below input value

How do I get rid of the seemingly default padding below text in an input on Firefox relative to Safari (where there is no space -what I want) http://branklin.com/queue/soq.php ...

how to use the 'video' element on safari.

<video id="myVideo" src="2.mp4" controls="" tabindex="0">decoder not found</video> this code show ' decoder not found' on safari (my os is windows xp) why ? thanks and this html5 vedio can be show on firefox and chrome ,but not safari. http://shapeshed.com/examples/HTML5-video-element/ why ? ...

Bug with audio reCaptcha in safari

Hi all, Can other Safari users please test http://recaptcha.net/learnmore.html for me, to see if the audio reCaptcha plays properly? On my machine, I can only hear the audio if I click the Download sound as MP3 link. I also don't get the spoken introduction at all. It works OK in Firefox and Chrome. I was alerted to this bug on my own...

Suppressing default anchor behavior in Safari with jQuery

Hello, I am attempting to prevent default anchor behavior in Safari using the jQuery library. Unfortunately, the standard techniques of returning false or using event.preventDefault() do not seem to be working in Safari. Could anyone help me with this issue? The code I'm working with is like this: $('#main .green-tabs a').live("cl...

Add safari bookmark from iPhone app

I'd like to have my applicAtion be able to add bookmarks to safari progammaticly, is this possible. ...