mobile-safari

Bind events to all text input fields in all Backbone views

两盒软妹~` 提交于 2019-12-25 16:48:26
问题 I am looking for a way to create global bindings that will span all views within the app, so that I do not have to set up these within each view individually. Bonus points if suggested mechanism has a way for individual input fields or views to opt out from this behaviour. Details: I've encountered this error where the virtual keyboard causes a div with positioned: fixed; (the header) to be positioned oddly on the screen, and then be repositioned correctly once more when the keyboard is

Get object value by property reference not working on iOS

故事扮演 提交于 2019-12-25 15:16:53
问题 This is my object: var charsObj = {"drive":{"status":"inprogress","data":"some data","history":"the text of my history"}} function getNote(x) { if ( x in charsObj) { console.log(charsObj[x]) } else { console.log('nothing', charsObj[x]) } } if I call getNote('drive') it returns my object value as expected EXCEPT iOS returns 'nothing', undefined . How do I get this to work on iOS? 来源: https://stackoverflow.com/questions/26024488/get-object-value-by-property-reference-not-working-on-ios

Touch Events “touchstart” returns incorrect position on Mobile Safari. Workarounds?

青春壹個敷衍的年華 提交于 2019-12-25 12:26:08
问题 I am developing an HTML5 Canvas project and while adding multitouch support for mobile devices, I seem to have run into an issue on Mobile Safari in iOS 7.1. The main way that users interact with my app is by clicking and dragging. On the desktop, I add the appropriate mouse event listeners to my canvas... c.addEventListener('mousedown', mouseDown, false); c.addEventListener('mousemove', mouseMoved, false); c.addEventListener('mouseup', mouseUp, false); ... have these event handlers calculate

Meteor login not working on mobile

泪湿孤枕 提交于 2019-12-25 11:57:29
问题 I am working on a simple mobile web app and I am having trouble logging in... I followed this little sample on making a custom login: http://blog.benmcmahen.com/post/41741539120/building-a-customized-accounts-ui-for-meteor Nothing too tricky here. So I run my meteor server locally. On my computer, through the browser, I can log in and create accounts -- no problem. When I go to my local IP from my iPhone, the website successfully loads but for some reason I am not able to login or create

preventing magnifier to appear

隐身守侯 提交于 2019-12-25 03:55:30
问题 I want to show my own popup when a text is selected and mouse is clicked for 1-2 seconds. I can get it working in FF/Chrome but in iphone/ipad's safari when I tap a text for sometime a magnifier appears, how to prevent that magnifier and show my own popup? 回答1: I don't have all the answers for showing your own popup (that'll require some JS hacking), but to get rid of that magnifying glass, just add this to your CSS: body { -webkit-touch-callout: none; } ...Or just add to the element you want

Mobile Safari Cellular Only Loading Error

╄→гoц情女王★ 提交于 2019-12-25 03:35:22
问题 I'm hoping someone here can help. We are experiencing a problem with an HTML/CSS only website we've developed but only in mobile Safari over a cellular network. The website loads on devices if they are connected to a wifi network though, and in other browsers like Opera Mini over the cellular network. Have a look at this video: http://youtu.be/W0lF6OwgLhI In case you can't see from the video, the site URL is http://www.ringelgroup.com This same issue has been seen on multiple devices in

Force a numeric keyboard but allow punctuation: HTML5, mobile Safari

不问归期 提交于 2019-12-25 02:58:35
问题 I'm building an HTML page to be viewed in mobile Safari [and other platforms]. The page lets the user specify several start and end times. They have to input at least two times, and possibly more depending on their situation. I want the user to be able to input their times as numbers and punctuation using the numeric-SHIFT mode keyboard, i.e. the user will see fields like this: And they'll get the numeric-SHIFT keyboard when they focus into the field: Won't work: <input type="time"> (and

Get access to console in Sencha Touch app running on iPhone

南楼画角 提交于 2019-12-25 02:29:07
问题 I want to use console.time('a') and console.timeEnd('a') in my Sencha Touch iOS app. This functions prinnt measured time in microseconds on console. How to get access to console while I'm running my app on iPhone? I tried with Safari Remote Web Inspector (like Phonegap iOS Safari debug workflow), but it doesn't work. It give me access to index.html, and Web Inspector opens correctly, but all his tabs are empty including console tab. (I tried used Safari Remote Web Inspector with PhoneGap and

Unwanted border around background image div

久未见 提交于 2019-12-24 23:19:19
问题 I am getting a slight line or border around my background image. I am dynamically changing the height of the parent div via javascript so that the inner div (which has the background image set) will "stick" to the bottom of the window. No line appears on the desktop browsers, but on the mobile browser after the script runs, there is usually a thin border around it: The border is on the left and the way it should be is on the right. Any suggestions? This is the script: <script type="text

JavaScript confirmation window always returning false on Safari for iPhone

跟風遠走 提交于 2019-12-24 22:27:30
问题 I'm using Knockout.JS to power a form and I have a button that when pressed displays a confirmation window. Only on Safari for iPhone it always returns false. It works with Chrome on my iPhone, and on my iPad and laptop it works on all browsers(including Safari). There are no errors either. self.submitPayment = function(){ var errors2 = ko.validation.group(secondValidationGroup); if (errors2().length == 0) { if(confirm_reservation() == true){ finalizePayment(); //calls function which displays