mobile-safari

Tap highlight in Safari Mobile and jQuery on() function produce huge highlight

大城市里の小女人 提交于 2020-01-05 07:16:10
问题 I am using jQuery's on() function on iOS' Safari Mobile Browser like this: $("#content").on(".element", click(function(){ do stuff}); When clicking on .element Safari highlights the whole #content area instead of just the area .element takes. When using $(".element").click(function(){do stuff}); instead the right area is highlighted. I guess this is the expected behavior but it's not intuitive for the user at all, so I'm looking for a workaround. I know I can get rid of the highlighting

C# Login code not work on safari

拜拜、爱过 提交于 2020-01-05 05:32:18
问题 I used the code below to login to my asp.net website. with framework 4 it's work successfully at web bowers, but didn't work on safari (iphone, ipad) only when I click on login button he refresh the page and not login. Session["AdminID"] = DT.Rows[0]["Id"].ToString(); Response.Cookies.Add(new HttpCookie("SuperAccountId", DT.Rows[0]["Id"].ToString())); Response.Cookies["SuperAccountId"].Expires = System.DateTime.Now.AddDays(1); Response.Cookies.Add(new HttpCookie("SuperAccountName", DT.Rows[0]

Iphone javascript defaults?

人盡茶涼 提交于 2020-01-04 16:56:49
问题 what are the javascript defaults for safari on iphone or ipad? I mean does safari have javascript turned on or off by default out of the box. If it is off, then is it possible to programmaticaly change that settings? Thanks! 回答1: JavaScript is enabled by default. Just like on desktop browsers, you cannot change a user's JavaScript on/off setting on an iPad, iPhone or iPod touch. 来源: https://stackoverflow.com/questions/4822857/iphone-javascript-defaults

-webkit-animation stops when scrolling on mobile safari

爱⌒轻易说出口 提交于 2020-01-04 09:32:26
问题 I'm making a css3 loading animation for a mobile website. The loader works just fine by using the following HTML / CSS: HTML: <div class="loader"></div> CSS: .loader { background-color: rgba(0,0,0,0); border: 6px solid rgba(0,0,0,0.75); opacity: 0.5; border-top: 6px solid rgba(0,0,0,0); border-left: 6px solid rgba(0,0,0,0); border-radius: 60px; box-shadow: 0 0 5px rgba(0,0,0,0.5); width: 60px; height: 60px; margin: 0 auto; -moz-animation: spin 1s infinite linear; -webkit-animation: spin 1s

How do you open a link in Safari from the Gmail app?

依然范特西╮ 提交于 2020-01-04 02:32:05
问题 I am sending out an email using the MFMailComposeViewController. MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init]; controller.mailComposeDelegate = self; [controller setSubject:@"subject"]; [controller setMessageBody:@"<a href=\"http://website.com\" target=\"_blank\">Link</a>." isHTML:YES ]; [self presentViewController:controller animated:YES completion:nil]; When the recipient opens this email in the default Mail app and taps the hyperlink, the page opens

How can I test how my websites render on Mobile Safari without buying an iPhone?

穿精又带淫゛_ 提交于 2020-01-04 01:55:09
问题 All the "emulators" I've found via google are simply a skin on top of Safari desktop or use your OS's default browser :( I borrowed my friends iPhone and noticed the CSS for a pure CSS drop-down menu doesn't render properly and you can't click the links, yet it renders properly on Safari desktop and every other browser even Internet Explorer 6 and 7. In other words the site is unnavigable on the iPhone. How can I test the Safari Mobile rendering engine without buying an iPhone? edit: Okay it

jQuery trigger click mobile Safari (iPad)

自古美人都是妖i 提交于 2020-01-03 11:16:49
问题 I have stumbled upon a bug in Safari on iPad. $('#next_proj a').trigger('click'); .. does not seems to click on the actual link. Any clues? 回答1: It may not be a bug. My guess is that they did not want to allow javascript emulated user clicks. 回答2: I got this to work by doing this... var el = $('#next_proj a').get(0); var evt = document.createEvent("MouseEvents"); evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); el.dispatchEvent(evt); Hope it

iOS 7 Access iPhone camera from Mobile Safari?

别说谁变了你拦得住时间么 提交于 2020-01-03 08:45:12
问题 In iOS 6 you could use something like this: <input type="file" accept="image/*" capture="camera"> <input type="file" accept="video/*" capture="camera"> http://jsfiddle.net/GAbW8/embedded/result/ But in iOS 7 you cannot access the camera anymore. Ideas? 回答1: Please try this: ...type="file" accept="image/*" capture> 来源: https://stackoverflow.com/questions/19097127/ios-7-access-iphone-camera-from-mobile-safari

Missing “Web Inspector” Settings in simulator

夙愿已清 提交于 2020-01-03 08:07:10
问题 After doing a "Reset All Content And Settings.." on the simulator the setting to enable using the web inspector in safari has disappeared, and I have no idea how to get it back: Does anyone have an idea how to get this back, and "remote" debug a webpage in the simulator again? 回答1: It seems that this option is not available in the simulated devices. Tip: If you want to connect the console from your desktop Safari, you will need the Technology Preview. the normal one does not discover the

Disable Same Origin Policy in Mobile Safari

这一生的挚爱 提交于 2020-01-03 07:24:30
问题 I have an HTML5/JavaScript app that was originally written to run in certain cars. Basically, I need to set up my app to run in the browser for a simple demo to a customer. I'm using jQuery .ajax which is causing problems due to the Same Origin Policy. I have found plenty of ways to disable this in desktop browsers, but not mobile ones. My goal is to demo the app on an iPad in Mobile Safari. Is there any way to temporarily disable the Same Origin Policy on an iPad? 回答1: I had the same problem