safari

Flex ExternalInterface not firing in Safari (works everwhere else!)

Hi all, I know there have been other questions on getting JavaScript / Flex ExternalInterface to play nicely, but I've what I think is a weird one. It works perfectly in every browser except Safari (on a Mac). Chrome, IE, Firefox - all ok, but Safari, nope it just wont fire. I've copied my code below, can anyone see why it doesn't work i...

ASP.NET AJAX Timer on iOS Safari

I'm attempting to display a real-time Arrivals/Departures list on an iPad / iPod Touch / iPhone that automatically refreshes every few seconds. ASP.NET AJAX UpdatePanels work fine, but the AJAX Timer never fires in iOS Safari browsers. Is there a way to get an ASP.NET AJAX Timer to work on iOS devices? Or is there some way I can put a b...

safari 5 extension - javascript problem - safari seems to cache the page and the DOM state

I've written a greasemonkey javascript that works fine in NinjaKit the new Safari userscript manager, but when I try and compile the same script using the Safari 5 extension builder I get some very weird behaviour. The script gives the user an options editing screen, when you click the save button, the script saves the users preferences...

Works in Firefox but not Chrome or Safari using jQuery Load

Hi, UPDATE I have now managed to get it working in both Firefox and Safari on Mac OS X but for some reason, it's still not working in Google Chrome 5.0.375.125. Could it possibly be related to this thread in the jQuery forums about Google not working properly on a file system url but will work when hosted on a server, i.e. see: jQuery...

why does @font-face work on safari and not on firefox? (Mac versions)

Hi, I've used the following in the CSS file of the website. It works on safari but not on Firefox. I'm a newbie so apologies for this if it seems like a simple question. Been trying now for 3 hours. @font-face { font-family: handwriting; src: url(http://example.com/handwriting.ttf); } Thank you in advance. ...

When trying to remove any selected option in an select element, Safari shows it as blank

Examine this code. I'm using jQuery, but I think it is probably irrelevant. JavaScript ​$(function() { $('button').click(function() { $('select option[selected]').removeAttr('selected'); }); }); HTML <select> <option>a</option> <option selected="selected">b</option> <option>c</option> </select> <button>give...

Creating a custom Image gallery that looks like Safari's "Show Top Sites" in Cocoa

Hi All, I am trying to create a view which shows similar the way of Safari's "Show Top Sites" option. I have bunch of images to be displayed in that gallery view. Any idea or suggestion to create this in my cocoa application. Thanks in advance. ...

getElementsByTagName not working in chrome and safari

Hi All I'm using the javascript method getElementsByTagName("a") to call all 'a' tags and do some effect with them. The method works in FF and Opera but not in Chrome and Safari. When I look in the debugging tools of Chrome and Safari they say: "Uncaught TypeError: Cannot call method 'getElementsByTagName' of null" Why is that and what...

Why Safari on iPad doesn't show large jpeg enclosed in IMG tag?

Last time I saw someone asks why Safari on iPad doesn't show some 1920x1440 jpeg with real size & I solved that puzzle. You have to use a progressive-encoded jpeg. However, I find another different problem. Say, demo.jpg is a progressive-encoded jpeg with 2000x3000 & I upload it to my website. I then access it via url ...demo.jpg, Safar...

safari navigation bar... How to reproduce it?

Hi all, I'm developing a new application that use a webView for internet searches... I'd like to reproduce the navigation bar as Safari's bar but I don't know how do. How can I create a navigation bar with label and two text fields programmatically? Does anyone know a tutorial, link or guide to do this? Thanks! ...

What are the limitations of coding web apps for the iPhone?

For instance, could a web app access the mic on an iPhone and transmit voice back to a server? Or is it possible to build Safari extensions for the iPhone that can operate transparently on a web page? For instance, is it possible to build an extension that removed ads from Google result pages for the iPhone, without the user clicking a...

Open URL In Safari

Hello, In objective c in mac development, how do i open a url in safari? I know how to in iPhone dev but not in Mac Dev Thanks! ...

When you touch an HTML element in Safari on the iPad, it turns gray. What is the logic to decide which element among nested elements is shown in gray?

When you touch an element, such as an edit box, in a web page on the iPad, it turns gray while you are touching it. I have a table wrapped by a floating div. Instead of an individual data element or row going gray, the whole table (or its wrapping div) goes gray when a data element is touched. (The function of this table is an autocompl...

Language identification (Opera, Safari, Chrome) in PHP

I'm using $_SERVER["HTTP_ACCEPT_LANGUAGE"]to detect the browser language, which works fine for Firefox and IE: Firefox: de,en-us;q=0.9,en;q=0.7,ru;q=0.6,ro;q=0.4,hu;q=0.3,zh;q=0.1 Internet Explorer: de Unfortunately, it doesn't work for the following browsers: Opera: en,en-US;q=0.9,ja;q=0.8,fr;q=0.7,de;q=0.6,es;q=0.5,it;q=0.4,pt;q=0...

tbody scroll not working in safari

I have defined a HTML table with thead, tbody and tfoot and also I have given tbody vertical scroll. The scroll is working fine in fire fox but its not active in safari. I googled and found that tbody scroll will not work, is there any alternative for this issue? ...

What exactly am I embedding when using WebKit in C#?

As I understand it, both Safari and Chrome use WebKit. There are many projects that allow you to embed WebKit, but want I actually want is to embed Chrome (for Windows) in a C# app so that my application renders identically to Chrome on Windows. So when I embed, say, AwesomiumDotNet, will the rendering, CSS support, Javascript engine, f...

How to modify url to get iphone version of facebook page?

I'm creating a facebook page for my application and I want it readable on mobile safari for iPhone, but the normal facebook pages don't show up properly (see attached image) The wall, info, discussion pages don't show up. I know I can prepend m.facebook to a url to make it the mobile version, but what about the iphone version? touch.fac...

Touch events available in Safari?

A friend and I were discussing Mozilla's latest touch support and got on the question of what Safari provides for this. Searches seem to turn up nothing. Do you know of anything that provides touch events to Safari on desktop, either via multitouch trackpad or direct screen interaction (I guess a Windows multitouch environment would be...

how do I make content scroll dynamically in a DIV on Iphone's safari or android's webkit?

my code: for(var myLine = 0; myLine < 100; myLine++) document.getElementById("myDiv").innerHTML += "line " + myLine + "<br>"; ............... <div style="position:...etc; overflow:auto;" id="myDiv"></div> this works without a glitch in every browser on all non mobile platforms. However... when this is implemented on iPhone (...

Converting Flash video to HTML5

I have a flash video(.swf) on my website and i want it to convert into such a format so that it remain available from iphone/ipad. Is there any possible way of doing so? Can i convert it into HTML5? If yes can anyone suggest the process and if no, can anyone suggest any other method? Any help would be highly appreciated. ...