safari

How To Implement a Safari Browser Plugin?

I want to implement a Safari plugin under OS X that manages the browsing history in an alternative way. More precisely, i need to have access to data like "a link is clicked", where the link leads and on which page the clicked link is located. In addition to that, i need to draw a representation of the gathered data. I want it to feel as...

Change iPhone's default Browser

Is there any way to alter the application an iPhone uses to view websites so that Safari isn't opened by default? I'm thinking it may be possible with a Jailbroken phone by editing an application's Info.plist to trick the iPhone into thinking a 3rd Party browser is Safari or using some form of openURL to handle all NSURL calls. ...

problem with image scaling in safari for fluid design

I'm trying to make a fluid website where you can see the website full screen on different size monitors, for images I'm using height:100% and Width:100%, everything looks ok in firefox,IE8 but in Safari and Google chrome the image gets distorted,does anyone know why this happens? thanks <div id="main_wrapper"> <img id="main_bg" src="...

getElementsByTagName problem in chrome and safari

I`m parsing a Google Maps RSS with javascript and using the following code to get the point coordinates: point_coords = items.getElementsByTagName('georss:point') Unfortunately it works in FF but not in safari and chrome (still not tested in Opera and IE) The XML looks like: <item> <guid isPermaLink="false">guidNo</guid> <pu...

iPhone app which is only a local HTML file, how?

I have a HTML Ajax website which consists only of one HTML file. How can I create an iPhone App out of it? The HTML file should be stored locally on the iPhone so it functions offline. ...

How do I read Safari's cache.db through Active Record?

What I Want I want to read the cache of Safari through Active Record. Essentially, I want to peek inside the cache like this except from within a Rails app. What I've Tried I copied the Cache.db file I set up the environment.rb file in a new Rails app with the path of a copy of the Safari Cache.db SQLite Database. Ran db:migrate Thi...

Request to php file from Flash hangs in Safari

The last two days we've been going over this problem for several hours to figure out what's going on and we can't find any clues. Here's what's happening; We have a Flash application that allows people to place orders. Users configure a product and an image of that product is generated by Flash on the fly and presented to the user. When ...

Is it possible to trigger onmouseover event on iPhone

On iPhone 3G, is it possible to fire onmouseover event on safari ...

Javascript problem in Chrome and Safari

I have a Javascript image switcher on my products page. It working perfect in IE and Firefox but both Safari and Chrome fails to load the script on some pageloads. A refresh seems to fix it but when changing product page or language it crashes. The product page Im using Wordpress and the script is varal.org/media/imageswitcher/ Thanks...

Is there a way to prevent detection by the website when a screenshot is taken using a Mac Os X Safari browser?

There is a thread discussing Darwin notifications being sent after a screenshot is taken. Does this apply to websites viewed via Safari? Do the same restrictions apply to PC sytems? Would taking the picture via a Python script in Linux or running Safari in a VM circumvent detection? ...

iPhone safari opens all the links in new tab

Hi, We recently developed an iPhone optimized version for our site. The problem that I am facing is that if you use the Add To Home Screen feature and add our site (http://m.smh.com.au) to your iPhone home screen and launch the site from home screen, all the links will open in new tab. I cannot find any documentation about this feature o...

Problem Accessing Secure Log-in Using Safari

Hi, Our sites reporting facility resides in ssl and is authenticated with a username and password. Works perfectly except in Safari - returns an error saying that the username or password entered was incorrect. This would never have been a problem but I want to access the reports from my Blackberry. Any ideas. ...

Launch Safari from iPhone App

I know that i can use the following code to launch my own url, but i want the user to continue their workflow after using my bookmarklet so therefore don't want to open a new tab and have them re-load the url i put into the url variable? NSURL url* = [NSURL URLWithString:@"http://google.com"]; [[UIApplication sharedApplication] openUrl:...

Adobe Scene7 and Safari for Windows compatibility?

We're developing a webapp that uses Adobe Scene7, and a decent percentage of our users are accessing our sites with Safari. All of the images created by Adobe Scene7 show a missing image icon when viewed with Safari for Windows. Here's an example from Adobe Scene7's own demo site - http://www.scene7.com/demos/jerseys.asp Has anyone els...

How to get mp3 files to play in iPhone Safari web browser?

How can I get an MP3 audio file to play in iPhone Safari (OS 3.1)? Currently, I am generating HTML e.g. <a href="file.mp3"><img src="sound.png" alt="Play audio"/></a> to play the file on clicking on the nested image. This works on Safari on OSX, but not on the iPhone. There, the content of the file is shown as text, but it does not a...

Future proof CSS hack for LTE Opera 10

I’m currently using @media screen and (-webkit-min-device-pixel-ratio:0) { example {} html:first-child example {} } to target Safari + Opera 9.2 Is there a safe way to target opera gte op 9.5 or lte op 10? (for example it won't be picked up by an upcoming version of firefox) By the way, type="text/opera" isn't working any...

How to pass a Javascript object to a Java applet in Safari?

I'm trying to call into a Java applet from Javascript but when I pass an object the Java applet only receives null. This works in IE and Firefox but not in Safari 4 (tried OSX and Windows version, neither seem to work). The Java applet method I'm calling might look like: public void sampleFunction(JSObject someobject) throws Exception...

[jQuery] webkit browsers are getting elements.width() wrong

I am trying to get the correct calculated width of an container. All the browsers are getting the calculated width correctly. (even IE) but surprisingly Chrome and webKit browsers are getting a wired number. I am trying to get the total width of the <li> including its border and padding + its margin-right. Then multiply that by the len...

Modal ExtJS Window not masking everything behind it in Safari and Chrome

Hi. I was wondering if somebody could help me with this problem. Everytime I show an Ext.Window with its modal config set to true, in FF and IE, it works fine, i mean everything behind the popup window is masked, whereas in Safari and Chrome, it doesn't. When i try to scroll down the page, I can see the mask is limited, which is not what...

Safari and downloading file issue

I have a website where I let users download mp3 files. The code snippet (partial) is as follows: Response.Clear(); Response.AppendHeader("Content-Disposition:", "attachment; filename=mike.mp3"); Response.AppendHeader("Content-Length", "1000"); Response.ContentType = "audio/mpeg3"; A customer complained that he is unable to download th...