mobile

Any suggestion for mobile datepicker [closed]

一曲冷凌霜 提交于 2019-12-10 13:24:46
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm building mobile widget based on javascript and html for which I need a calendar module build on javascript. I tried UI datepicker

Mobile browser(chrome,safari) cookies not deleted on closing session

纵然是瞬间 提交于 2019-12-10 13:06:54
问题 Mobile browser(chrome, safari) not killing cookies with expire time set to '0', Same cookie persists when browser is reopened... 回答1: Cookies must be deleted with the same parameters as they were set with. If the value argument is an empty string, or FALSE, and all other arguments match a previous call to setcookie, then the cookie with the specified name will be deleted from the remote client. This is internally achieved by setting value to 'deleted' and expiration time to one year in past.

51Degrees reloading on each request slows ASP.NET MVC to a crawl

爱⌒轻易说出口 提交于 2019-12-10 13:00:25
问题 My ASP.NET MVC 3 project slows to a crawl after adding the 51Degrees mobile detection library. The 51Degrees log file defined by <log logFile="~/bin/App_Data/51Log.txt" logLevel="Info" /> in the <fiftyOne> section reveals that the device library is reloaded for each request, adding a 2-3 seconds delay for each request: 2011-10-22T14:17:34.9863774Z - 8436 - Info - Loaded 14691 devices using 11640 strings in 1882ms 2011-10-22T14:17:50.8442844Z - 8436 - Info - Loaded 14691 devices using 11640

Image change onclick not work in mobile browser

荒凉一梦 提交于 2019-12-10 12:18:06
问题 I have a code that will change the image upon clicking on the image. However, since I am using mouseup/mousedown, is there a way to make it so that it also work in mobile browsers as well? $(document).ready(function(){ $(".menulink").eq(0).mouseup(function(){ $('#menu1').attr('src', 'http://placehold.it/333/3ef/img/picture2.jpg'); }); $(".menulink").eq(0).mousedown(function(){ $('#menu1').attr('src', 'http://placehold.it/333/fe3/img/picture1.jpg'); }); $(".menulink").eq(1).mouseup(function(){

Access GPS and camera devices on mobile devices from mobile websites

风格不统一 提交于 2019-12-10 12:18:05
问题 I'd like to be able to access GPS and Camera devices from websites built for mobile devices. Most particularly the windows mobile, blackberry or android. 回答1: GPS is possible. Camera is not. Take a look at Geo location lib most of the method are device/platform specific but a little googling and you should be able to find the correct methods. For Blackberry 来源: https://stackoverflow.com/questions/2373280/access-gps-and-camera-devices-on-mobile-devices-from-mobile-websites

Swipe in the middle to open panel with jQuery Mobile?

拜拜、爱过 提交于 2019-12-10 12:16:17
问题 I have a small bars button in my nav header that opens the panel when clicked, but how do I make it so that when I swipe to the right from the middle of the app, it opens the left panel? You can see this on many native apps including Facebook. Thanks for any help! 回答1: I think this is what you'll want (you may want to refine your selector for your swipe area) - $('body').on('swiperight', function () { $('#defaultpanel').panel('open', ''); }); $('body').on('swipeleft', function () { $('

Azure Active Directory - OAuth Authentication with Authorization Code Grant Flow and mobile

纵饮孤独 提交于 2019-12-10 12:03:16
问题 I have a Web API that uses Azure AD OAuth for authentication, that is consumed by a mobile client (android, iOS) and there are a functional requirement to avoid the user to enter again his credentials if he wants to use the application when the token and refresh token has expired. How could be the best way for handling this with Authorization Code Grant Flow ? Thanks a lot. 回答1: The quick answer is that when the refresh token is expired, the only recourse is for the user to re-enter creds.

Azure Mobile App node.js backend - Custom queries and passing parameters

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 11:55:06
问题 I used to have an Azure Mobile Service with a JavaScript backend. Now I switched to the new Azure Mobile App with its node.js backend. Since things are handled differently with node.js, I want to ask you how to do some simple things that used to work with the older backend. The first thing is, how can I modify a "read" or "insert" request on the server side to, for instance, execute a custom query. I used to do that like this: function read(query, user, request) { var visitorID = request

JQuery Mobile Parse JSON for ListView

扶醉桌前 提交于 2019-12-10 11:48:22
问题 This question has been asked lots and have spent the last 3 days going through a number of different 'solutions', none of which I can get to work. I have a huge JSON file, some 150k entries, that I want to view as a ListVIew in JQuery Mobile. (I will be using the Filter to actually use the data) The best I have come up with is this <!DOCTYPE html> <html> <head> <title>Test</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/jqm-docs

captured images with HTML5 for mobile devices

梦想的初衷 提交于 2019-12-10 11:42:56
问题 i am using html 5 <input type="file" accept="image/*;capture=camera"/> file element for web mobile to take photo it works fine but how can i handle file.value to send it to web service or database? here is demo for mobile devices Demo link here is my code but does not work i can not get file upload value <html> <script> function getPhoto() { alert('2'); var fu1 = document.getElementById("myfile").value; alert("You selected " + fu1); } </script> <body> <form> <input type="file" name="myfile"