mobile-safari

How can I get jQuery UI's Draggable and Sortable functions to work on the iPhone?

随声附和 提交于 2019-12-18 10:24:40
问题 I have a page that uses JQuery UI; in particular the Sortable interaction. The page works fine for desktop web browsers with mice, however I can't get the drag-drop functionality to work on Mobile Safari on the iPhone. Any dragging action simply scrolls the page. The functionality on my page is extremely similar to the Sortable Empty-Lists demo on the JQuery UI site. This page also doesn't work on the iPhone. Is there any way to get the drag-drop functions working on the iPhone? 回答1:

Mobile Safari Page unload/hide/blur for Deep Linking

限于喜欢 提交于 2019-12-18 10:24:10
问题 I am looking for an event on mobile safari that will detect when the page has been hidden due to a redirect. I want to open my app directly if a user has it installed, then attempt facebook if it is installed, and if not then go to the webpage for that id. If 'myapp' is installed, then myapp is opened. But the safari tab still gets redirected to facebook.com If 'myapp' is not installed, but facebook is, then facebook ios app is opened. But the safari tab still gets redirected to facebook.com

prevent full page scrolling iOS

假如想象 提交于 2019-12-18 10:13:24
问题 Under Mobile Safari, is it possible to allow one absolutely positioned div to scroll without allowing the entire page to bob up and down when it the scroll reaches the edges (elastically scrolling)? Here is a minimal working example of the issue I'm facing: <!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes" /> <style> * {

Setting “Home Screen” icon name for mobile Safari

限于喜欢 提交于 2019-12-18 10:09:24
问题 By default, when "bookmarking" a website as an icon (by choosing to Add to Home Screen from within Safari's "+" menu), the icon name defaults to the page's <title> , truncated to 12 characters. In much the same way that apple-touch-icon lets you specify your own iconified representation of the page, is there a way for the webpage to specify a default icon name other than its <title> ? 回答1: In iOS 6 this is solved with a meta tag: <meta name="apple-mobile-web-app-title" content="Short name">

setTimeout not working on safari mobile

纵饮孤独 提交于 2019-12-18 07:37:07
问题 I have a function that shows a menu when clicking on it, and I want it to disappear after 5 seconds. This is my javascript - it works properly on desktop browser but it doesn't disappear on the mobile ones. $(function() { $('#prod_btn').click(function() { $(this).addClass('selected').next('ul').css('display', 'block'); setTimeout(hideMenu, 5000); }); }); function hideMenu() { $('#prod_btn').removeClass('selected').next('ul').css('display', 'none'); } Where is the problem? Thanks 回答1: I've

CSS styled scrollbars support for safari mobile on iOS 6 disappeared?

前提是你 提交于 2019-12-18 05:56:18
问题 I'm having a problem, probably because of Apple and I can't find information about it. Yesterday I skinned a website's scrollbars with webkit css properties (-webkit-scrollbar, -webkit-scrollbar-track, -webkit-scrollbar-thumb) so it displays nicely on iPads. Everything was fine looking and scrolling with native behaviour. Suddenly this morning, after updating my iPad to iOS6, my custom scrollbars disappeared. This is a big bummer for me and of course there is no information about this on

Is there any possibility to control HTML5 audio volume on IOS?

只谈情不闲聊 提交于 2019-12-18 05:06:26
问题 I use the html5 audio library Buzz to add sounds to a browser game. There is a toggle button to mute and unmute sound, which works good on desktop and Android devices. Unfortunately it seems like the audio tag is quite limited on IOS, so that I cannot mute audio in Mobile Safari (see https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Introduction/Introduction.html): On iOS devices, the audio level is always under the user’s physical control

iOS: Is it possible to open NSURLRequest directly in Safari?

梦想与她 提交于 2019-12-18 05:06:08
问题 I'm not talking about a UIWebView , I want to open the mobile safari app using an NSURLRequest . Why? In my app, the user has already logged into our web server. I want to give the user the option of launching the webpage without having to reenter their credentials. However, I can't use a GET because that would put their credentials in the URL. So, can I open the safari app (not a UIWebView ) from my app with an NSURLRequest or a POST in some other form? 回答1: I'm going to put my neck on the

iOS: Is it possible to open NSURLRequest directly in Safari?

你说的曾经没有我的故事 提交于 2019-12-18 05:06:04
问题 I'm not talking about a UIWebView , I want to open the mobile safari app using an NSURLRequest . Why? In my app, the user has already logged into our web server. I want to give the user the option of launching the webpage without having to reenter their credentials. However, I can't use a GET because that would put their credentials in the URL. So, can I open the safari app (not a UIWebView ) from my app with an NSURLRequest or a POST in some other form? 回答1: I'm going to put my neck on the

Line artifacts in mobile Safari

浪尽此生 提交于 2019-12-18 04:54:21
问题 Safari renders black lines in between divs on my website at some scales. It is particularly bad when it breaks apart an image that is chopped in two different divs for a button or something. I can't put a BG in the parent of the two divs because they are transparent .pngs. Any solution or just deal with it? capture of the problem, http://i.stack.imgur.com/pTLki.png TravisO also has the same problem, and I changed how the page was laid out, originally it was a simple table with 5 rows, I