mobile-website

Persisting cookie for iPhone UIwebview mobile web app

☆樱花仙子☆ 提交于 2019-12-12 01:07:42
问题 I'm using MVC4 forms auth. My mobile web app runs in full screen UIwebview on iphone. I have a home screen icon for my mobile web app. The app needs to launch external links. Those launch in Safari, which works fine. However returning to the mobile web app by clicking again on the home screen icon, seems to have logged the user out. Ideally I want the user to remain logged into the web app after viewing the external links in Safari. Maybe the cookie got deleted? Can I persist the cookie? 回答1:

Audio delay on HTML5 mobile web app

大兔子大兔子 提交于 2019-12-11 20:00:01
问题 I'm developing a mobile web app using HTML5 & Javascript. The goal is to have a page with buttons that play sound after touch events, using the HTML5 audio tag. But I'm noticing a significant delay between the touch event and the sound being played, even after the audio file has been cached. I think this may be due to the way iOS Safari handles sound but I'm not sure. Are there any solutions or creative workarounds to this issue? How can I minimize the delay between the touch event and

Are there any special server requirements for rendering a .mobi site?

那年仲夏 提交于 2019-12-11 15:45:18
问题 I need to develop a mobi site for a client, do I need a specific server setup for this, or are there any additional server configurations that I need in order to render a mobi site or does it work the same as a normal website? 回答1: A .mobi domain is not different (in terms of setup/configuration) than a .com Even from a technological point of view, you can develop a mobile oriented application using the web technology (Java, PHP, Python, PHP...) and hardware infrastructure you prefer. From

How to obtain object from navigator.getUserMedia() in mobile web?

谁说胖子不能爱 提交于 2019-12-11 15:16:55
问题 Trying to get a JavaScript reference/promise to a MediaStream returned from MediaDevices in HTML5 and WebRTC. JavaScript here is run on Chrome and Safari on iOS and Android. navigator.mediaDevices.getUserMedia(session, initRec , onErr); This throws TypeError: undefined is not an object (evaluating 'navigator.mediaDevices.getUserMedia') Fine, let's try it the slightly older way: navigator.getUserMedia(parms,initfunc,errfunc); This throws TypeError: navigator.getuserMedia is not a function. (In

Remove image link in mobile screen

血红的双手。 提交于 2019-12-11 13:41:16
问题 I have a clickable image on my desktop website theme which showed on mobile screens. I’ve managed to remove the image with the following code but it has left a ‘ghost’ link which users don’t see but if touched takes them to the linked page: In footer.tpl <div id="footer"> <div class="column"> <a href="http://mywebsite.com/delivery" id="test"></a> In stylesheet.css #test { @media screen and (max-width: 480px) { image display: none; } background-image: url('../image/myimage.png'); background

'Share Functionality' for Mobile Web Apps

主宰稳场 提交于 2019-12-11 11:04:18
问题 If I add a 'mailto:' link to my Mobile web app, smartphones know to open up the native mail app, is there something similar for 'sharing'? I ask because on my Android 2.2, if I 'select text' using the browser's menu option, and then I select some text, I get presented with a 'share via' option that opens a native dialog with options to share via gmail, facebook, etc... I'd like to trigger this dialog from my Mobile Web App. Is this possible? Thanks in advance for any help, much appreciated as

mouse click event.pagex is NaN in mobile chrome browser (v30.0.1599.92)

别来无恙 提交于 2019-12-11 10:47:27
问题 I'm trying to display a info box kind of element at the position where the user clicks. I'm listening to 'click' event, a handler function uses mouse click even object's event.pageX and event.pageY to render the info box. This works perfectly in the desktop browser. I tried hitting the page from a mobile client. event.pageX and event.pageY seem to be "NaN". Any idea why?? portion of the handler is as follows. var pushPinClickEventHandler = function (event) { var clickX = event.pageX; var

In mobile site Opera Mini select all the links of list items at once, any solution?

旧城冷巷雨未停 提交于 2019-12-11 07:56:07
问题 I'm making a mobile site for old mobile and testing on Nokia 5130 Xpress Music which has Opera Mini Browser. The problem is when I have links list on a web page opening in Opera Mini and I try to select one link of the list, but it select the all list items instead of single. Code of list <ul id="nav"> <li id="nav-1"><a href="#"><span>Nyheder</span></a></li> <li id="nav-2"><a href="#"><span>Kalender</span></a></li> <li id="nav-3"><a href="#"><span>Job</span></a></li> <li id="nav-4"><a href="#

detect mobile browser and javascript support

折月煮酒 提交于 2019-12-11 07:06:04
问题 I want to detect if the request is coming from a mobile browser (i m using java/jsp) Now when i access the page from my samsung mobile phone i get the user agent header as: - SAMSUNG-GT-S5620/S5620DDJE1 SHP/VPP/R5 Dolfin/1.5 Nextreaming SMM-MMS/1.2.0 profile/MIDP-2.1 configuration/CLDC-1.1 should i check that the header contains iPhone,BlackBerry,Android,webOS,iPod,Samsung or there is some more simple way... How can i make sure that the browser supports javascript and by the way does mobile

jQuery toggle sibling on focus/blur

孤街醉人 提交于 2019-12-11 06:23:55
问题 So I have this now and it works, but I wanted to know if there is an optimal way of writing this as I writing a mobile site and performance if a big thing. Think tool-tip that slides down (toggles) under the element, I also have about 30 tool tip divs on the page as this will be for multiple elements JS: $('.mobile-tool-tip').each(function() { $(this).hide(); $(this).prev().focus(function() { $(this).next().slideToggle('fast'); }); $(this).prev().blur(function() { $(this).next().slideToggle(