safari

iphone's safari touchmove event not working.

i am using jquery and touchmove event but the code is not showing anything in #info $('#movieShow').bind('touchmove',function(e){ e.preventDefault(); $('#info').text(e.touches[0].pageX); }); ...

How do I recognize a mouseclick in a webpage from a Safari extension?

I'm a bit of a noob, but I tried all of the obvious things. Perhaps my javascript is just terrible and that's why, but onmousedown = func; doesn't work. etc. function performCommand(event) { /*removed*/ //It reaches this point document.body.onclick = function() { //Never reaches this point /*removed*/ } } ...

Loading animation doesn't show up until after ajax call completes in Safari/Chrome

Hello Everyone, I've run into a problem that I haven't been able to find a solution to yet. I'm creating a resource booking application which uses AJAX to process information given by the user into a back-end database. Whenever the user wants to create a booking they fill out a form with relavent information which gets sent via AJAX to...

Jquery Image resizing and centering to window not working in Safari

UPDATE: So due to this page: yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/, I realized that finding the window dimensions is not safari's problem. Instead it's finding the image .width() and .height(). I tried some of the ideas on this page: http://36flavours.com/2010/01/jquery-document-ready-bug-in-sa...

Safari and Chrome adding form values to URL

Long story short: on Chrome and Safari only, values from a login form are sometimes pasted into the user's URL, even though the actual login is POSTed via AJAX. http://my-site.example/?name=user&pw=xxx&challenge=b1be8ad7aac242... It's been reported repeatedly and I've seen it happen myself, but have been unable to reproduce it...

Safari 5 Extension: How can I detect when a window's current tab has changed?

I have a Safari 5 extension that contains a toolbar. Whenever the current tab changes, that toolbar should be updated. I would like to do something like this from my bar's script: safari.self.browserWindow.addEventListener("activeTab", tabChanged, false); However, that doesn't seem to work. I have tried a number of other event names a...

How to get min-height working in Safari, Chrome on MAC

I have a page with the following CSS, it renders fine on IE and FF, but on Mac in Safari and Chrome the min-height does not seem to work and all the content collapses on top of each other when the browser page is short instead of staying extended and providing scrollbars: <style type="text/css"> html, body { height: 100%; ...

jQuery thickbox 3.1 and mobile safari

I'm using jquery tb 3.1 and having issues using it on the iphone and ipad...so i'm assuming mobile safari is the issue. what happens is no matter where the user is on the page if they click a hyperlink that opens the thickbox window, you have to scroll up to see it. it's staying aligned at the top and the greyed out TB window doesn't fi...

Running Ajax in Safari

I am writing an app for the iphone that fetches weather information based on location. The weather feed works fine for a set location. I have created a parser that fetches gps coordinates based on a programmed called instamapper which posts coordinates online in csv format. I can execute the code fine in IE within a HTML file and see my ...

Download plugins by javascript on Chrome, Safari

Dear all, I have implemented the plugin by NPAPI for Firefox, Chrome, Safari, but there is a issue for me is how to download the plugin by JavaScript on Chrome, Safari? I know the .xpi is a extension for Firefox, and I can write the script for downloading the xpi from server and Firefox will equip a xpi to Firefox extension folder. ...

iphone css: media type not working!

Hi I am working on a site specific to the iphone community. Having read few articles on the net, regarding css for the iphone safari browser I learnt to use the following code: <!--[if !IE]>--> <link type="text/css" rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iPhone.css"> <!--<![endif]--> However when I us...

HTML5 canvas drag events on iPhone (Safari or UIWebView)

Hi, I have a simple "drag to draw" doodle style HTML5/canvas implementation which uses the 'mousemove' event on the canvas. E.g.: canvas.addEventListener( 'mousemove', drawingFunction, false ); This works fine on, say, Safari or FF on the desktop. However, when run on an iPhone, dragging only scrolls the webview around the screen. No...

How can I get an event to fire every time localStorage is updated in Safari 5+?

I have tried to follow the examples on the Safari Developer Site. The documentation suggests adding an event listener like so: window.addEventListener('storage', storage_handler, false); And then setting your handler function like this: function storage_handler(evt) { alert('The modified key was '+evt.key); alert('The origin...

How to add javascript code to safari extension?

I create a safari extension , but I don't kown how to add javascript code to safari extension? ...

CSS Compatibility between IE8, Chrome, Firefox and Safari

Hi, I am writing a JSP page. I need to have a table. One of the statement is: where recordTr_SubGroup is in a file style.css .recordTr_SubGroup { background-color:#81BEF7; cursor: default; } I intend to highlight the row with the color. But finally, it happens correctly only in IE8. Firefox, Chrome and Safari cannot produce ...

How do I detect when a safari webplugin loses focus?

I need to be able to detect the browser loses focus in a webkit plugin I wrote. I thought I could implement the webViewUnfocus method from the WebUIDelegate protocol but that's not firing. Does anyone have a pointer to a code snippet for what should be a relatively simple problem? ...

MobileSafari UILabel

Hi, I was wondering how the UILabel that displays the website's title in Mobile Safari is created? It's obviously some kind of a subclass and I've attempted to copy it by using my own subclass,but it just doesn't look the same. I also don't know which font they're using :/ Could anyone help me out please? :) here's my class: CGSize s...

How to increase max connection counts in Safari on iPhone4?

The max parallel connections in Safari on iPhone4 is 4. (This URL can test the number of parallel connection count. http://www.spasche.net/files/parallel_connections/) In previous OS, the max connection count is 6. Is there any config of Safari to increase the max connection count? Any suggestion is helpful, and thanks in advance. B...

Why do buttons look larger in Safari as compared to FireFox, IE8, and Chrome?

I have a website whose header looks misaligned when viewed in Safari as compared to FireFox or IE8. I found out that this is caused by buttons looking larger in Safari than other browsers. What CSS could fix this problem in Safari? Here is a screenshot comparing Safari and Firefox: http://webypedia.com/wp-content/uploads/2010/08/Safari...

Safari doesn't respect Cache-Control HTTP headers?

Using a variety of resources, I've come up with the following django middleware to prevent browser caching for authenticated users: class NoBrowserCachingMiddleware: def add_to_header(self, response, key, value): if response.has_header(key): values = re.split(r'\s*,\s*', response[key]) if not value in values: ...