Skip to content
Advertisement

Tag: ios

Axios POST fails on iOS

I am trying to do a simple ajax POST from domain1 to domain2 using Axios. This is a cross domain simple POST so there is no PREFLIGHT (OPTIONS) call. The response from the application is a simple JSON string. On Chrome, on Android, Windows and iOS (excluding iPhone) this works fine. But on iPhone 6,7,8+ on both Safari and Chrome

getCurrentPosition in JS does not work on iOS

I have a page that contains a code that gets the current location from the device and load other stuff based on the location with this code: It works on all android devices that I tested, but on iOS and macOS, it’s not working. Neither if nor else. Seems like it stuck at getting the current location. Any help? Answer

getSelection not working properly in iOS 12

Functions document.getSelection() and window.getSelection() do not work in iOS 12. The problem is reproduced in Safari, Google Chrome and WKWebView. In iOS 11 and MacOS (any version), these functions are work. Can you advise? Example: Answer I don’t really know why document.getSelection() and window.getSelection() does not work in iOS 12, but the code bellow will return the offset within the

javascript file input onchange not working [ios safari only]

The code below works everywhere except on safari mobile. Apparently the onchange is never triggered. I have found similar examples however they all refer to scenarios where there is even a form of some other visible representation of the file input and they all involve form-clearing workarounds. That wouldn’t work here. This code is being called upon clicking a picture,

$(document).ready not firing on iOS

I have the following code on my page: <script src=”//path.to/jquery.min.js”></script> The above code runs well on Desktop and Android devices, but when running on iOS devices the Statement #2 doesn’t work. I’ve checked the console, and there are no errors. Just for testing, i’ve executed Statements #2 on console by copy/paste and it runs as expected – This don’t work

Mobile Safari, scrollIntoView doesn’t work

I have a problem with scroll to element on mobile Safari in iframe (it works on other browsers, including Safari on mac). I use scrollIntoView. I want to scroll when all content has been rendered. Here is my code: Answer ScrollIntoView does not work (currently). But you can manually calculate the position of the element and scroll to it. Here

Advertisement