Posts

Showing posts with the label Mobile Safari

Apple - Can You Force A Mobile Site On Your IPhone To Show Full Desktop View?

Image
Answer : I don't think you can do this in Safari on the iPhone but you could use a 3rd party browser app. Many of those will let you set the browser agent. One browser I know does this is 'Atomic Web Browser'. This may not work in all cases as some websites may use other ways of determining which content to show, for example, some will detect the screen dimensions. I've tried this on my iPhone with Atomic Web Browser. Within the browser, I went to settings, 'Identify browser as' and selected 'Safari Desktop'. Then I went to nascar.com and tapped on the nascar logo. It showed me the desktop version of the page. I checked in mobile safari and doing the same indeed took me to a mobile version. An additional recommendation: the free Puffin browser in the App Store displays full websites. Google Chrome for iPhone is my daily driver for Stackexchange and it works wonderfully well both in desktop and mobile modes. Tap the menu button Reqest Desk...

Copy To Clipboard Using Javascript In IOS

Answer : Update! iOS >= 10 Looks like with the help of selection ranges and some little hack it is possible to directly copy to the clipboard on iOS (>= 10) Safari. I personally tested this on iPhone 5C iOS 10.3.3 and iPhone 8 iOS 11.1. However, there seem to be some restrictions, which are: Text can only be copied from <input> and <textarea> elements. If the element holding the text is not inside a <form> , then it must be contenteditable . The element holding the text must not be readonly (though you may try, this is not an "official" method documented anywhere). The text inside the element must be in selection range. To cover all four of these "requirements", you will have to: Put the text to be copied inside an <input> or <textarea> element. Save the old values of contenteditable and readonly of the element to be able to restore them after copying. Change contenteditable to true and readonly to false . Create a ...