safari

Javascript Base64 encoding UTF8 string fails in webkit/safari

I'm trying to base64 encode a utf8 string containing Thai characters. I'm using the browser's built in btoa function. It works for ascii text, however Thai is causing it to throw a INVALID_CHARACTER_ERR: DOM Exception 5 exception. Here's a sample that fails (the character that looks like an "n" is Thai) btoa('aก') What do I need to...

Can we change the maximum size of the html5 offline app in iPad/iphone from inside the app itself?

First of all is the 5MB limit, that is supposed to be the limit for offline storage, related to the data storage of files specified in MANIFEST or is that related to the data in database that can be stored? Either way is there such a limit in real and if so can it be changed dynamically from inside the program? ...

How to format settings

I have an extension that I want to have the user input time info into so that my extension will execute at certain times. I want to have this input be done through the global settings. The problem is that I can't find a way to either A) format the input or B) at least check for valid input. I just want to be able to use the key to get...

Windows Safari 5 bug when using backspace in a Flash web application

I have noticed this bug when developing my flash application on a windows platform. If typing text in to a text box in a Flash swf running in Safari 5 browser on Windows then press backspace the browser will jump to the previous page in history rather than performing the function that backspace is supposed to - here is a link to another ...

On Safari HTML5 Audio tag not supported on some computers

I tried it on Safari 5.0 (7533.16) and 5.0.1 (7533.17.8) and for both versions on Windows XP/7. The Audio tag does not work on all computers. I tried "www.html5test.com" which runs a conformance test for HTML5. It reports audio tag not supported on the problemetic computers although all of them have the same version of Safari. ...

Is there a firebug alike plugin for safari?

I need this tool badly,anyone knows? ...

iphone safari making phone call

is there something i can put in the code for a html page i am making for safari on iphone which can make a call when click on? something similar to: <a href="tel://1300111222">click to call</a> ...

create javascript code in a php file - SAFARI/CHROME doesn't work

Hello, I've created a .php file that write out js code like that: <? //my_js.php // javascript header header('Content-type: text/javascript'); // Date in the past header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // always modified header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // HTTP/1.1 header('Cache-Control: no-stor...

Lock orientation of webapp for iPhone iPad iPod

Im struggling to lock orientation of a webapp. For example want the site to be permanently in orientation view. And advice appreciated. ...

closures handled differently on desktop browser and mobile safari?

Here's a simple javascript program: var $d = {}; var AudioPlayer = function(filename, timeUpdateCallback, playbackDone){ // An HTML5 audio player is defined here. } $d.AudioPlayer = AudioPlayer; var AudioManager = function(chapterId){ var audioPlayer; var me=this; this.next = function(){ ... ...

Are there keyboard shortcuts for the Safari debugger?

Firebug and eclipse both let me step through code using function keys. Does Safari have equivalent capabilities? ...

Google Maps API v3 marker setPosition not working in Safari (sencha touch)

I am using Sencha Touch to develop a mobile version of a Bus Tracker for Boston University. The problem I a running into is that the method setPosition() for a google.maps.Marker is not rendering the position change in Safari or any Mobile browser. The code set up is as follows: I initialize an empty markers array I initialize the map...

Safari Extension - How to use users settings?

Hi, I'm updating my first Safari Extension, and need some quick help. I've created a button (Although I eventually want it to automatic) that essentially executes a javascript script. I need the script it runs to use a variable which it will grab from the settings in the Preferences panel. How do I get it to check, I know there's some so...

Mobile Safari doens't show background Image when sliding page left

I display a web page with a large-width photo (say 2000 pixels jpg file) & a repeat small background image in mobile Safari & the right part of photo is beyond the screen. I touch & slide the page left to see right part but found there's no background image below the right part but only white blank background. Does anyone know how to ...

jQuery getJSON calls on webpage exit not working on Chrome 6 and Safari 5 (working in Chrome 5)

Issue: Attach a click event on a link on a page (say link to http://google.com/) Try doing an AJAX or getJSON (JQuery specific call) from the function bound to that click event The AJAX or getJSON call is never completed (even if we add an explicit half-second pause) Sample HTML page: http://paraschopra.com/temp/bah.html Sample Serv...

Geolocation not workin on Safari 5.x on Windows 7/XP

Hi, I am working on an app that uses the W3C standard geolocation API but I cannot for the life of me get it to work on Safari on my Windows 7 and XP PC. It works fine on my iPad and my iPhone. It also works perfect on Chrome (5, 6, 7 and the Canary build) and on Firefox (3.6). I don't have a Mac so I can't test it on that. IE doesn...

Safari 5 extension to load a URL without opening window

Hey everyone, I'm fairly bad at javascript, but here's what I want. I have a PHP script on my server, and when a user presses my Safari Extension button, I want a request (url) sent to my server (www.myurl.com/directory/script.php?etc), but I don't really want a new window/tab opening to load it. Is there a way load it in a hidden windo...

Webkit iphone/ipad issue with mutl-touch

Hi, In a UIWebView (multi-touch enabled) I got a page with two divs (div1 and div2), each of them having registered for the touchstart and touchend events. Everytime they are receiving touch events, I am dumping the content of: event.touches: contains all current touches event.targetTouches: contains touches relevant to the given tar...

UIWebView Xhmtl parse error but safari don't

Hi, I have an application showing standard html pages. I use UIWebView for html. When using safari for pages no problem. When I use uiwebview the page does not load. Error message(UIWebView) This page contains the following errors: error on line 230 at column 33: AttValue: " or ' expected Below is rendering of the page up to the firs...

Safari is returning the wrong width value

Hi I have a table with a div in it the table has 2 columns and both are 50% In most browsers I can use offsetWidth to get the width of the article. But in Safari the width is less or more than what it should be. Any help would be greatly appriciated. Regards Richard ...