mobile

mobile first responsive web design and responsive images questions

送分小仙女□ 提交于 2019-12-11 09:43:29
问题 I have created this sort of ecommerce website, with the aim to be visualized on a mobile phone web browser (possibly with an acceptable user experience on tablets/pcs/tvs also). Yes, an awkward tempt of responsive web design: http://rosposhop.herokuapp.com As you can see, I used http://getbootstrap.com/ v. 3.x and I apologize in advance for my enormous ignorance on CSS. Mhh... I developed initially the site with a mobile handset in mind, and mainly the site do pretty wath I want in portrait

Display: none - Show on the mobile, but not on the desktop

a 夏天 提交于 2019-12-11 09:35:39
问题 I am attempting to use display: none so an element will show up on a smaller resolution (or a mobile device) but not on the main css for larger screen sizes. I think it is probably logical that it doesn't show but I can't figure out a way to get around this. footer { display: none; } @media handheld and (max-width:480px), screen and (max-device-width: 480px), screen and (max-width: 600px) { footer { background-color: #colour; position:fixed; bottom: 0; left: 0; right: 0; } } 回答1: You can set

Why the mssql object can not be identified?

瘦欲@ 提交于 2019-12-11 09:33:38
问题 I am getting below error when using mssql object in script as: var mssql =request.services.mssql; Log entry details ERROR Error in script '/api/apitest.js'. TypeError: Cannot read property 'mssql' of undefined at exports.get (D:\home\site\wwwroot\App_Data\config\scripts\api\apitest.js:3:31) [external code] Please suggest. Thanks 回答1: Your problem seems to be a typo: it's request.service.mssql , not request.services.mssql as you have in your question (there's no s at the end of service ). Try

Stream Video from Mobile

﹥>﹥吖頭↗ 提交于 2019-12-11 09:23:56
问题 I'm looking the best solution for video streaming from Mobile devices . As far as I understand, The most efficient way is using RTMP \ RTSP \ UDP protocol, or TCP \ websockets. So far I've found few options: HTTP Live Streaming (IOS) - but it's only for IOS HTML5 LIVE VIDEO STREAMING VIA WEBSOCKETS - which works on node.js, but with no audio! BinaryJS - bidrectional realtime binary data with binary websockets (also websockets on Node.js) WebRTC - for client side The thing is - I don't really

Cross device photo capture for upload

…衆ロ難τιáo~ 提交于 2019-12-11 09:20:00
问题 Since iOS6 Mobile Safari browser users of the have been able to upload images from their device either through the camera or their photo album. Web developers only had to write a upload script bound a file input tag as follows: <input type="file" accept="image/*" capture="camera"> This would prompt iOS users to select the image source (image file or camera) and then the image would be uploaded to the server. Something like in this image. This works well for iOS with Mobile Safari however, I

Why does my web service produce an XML result for most mobile browsers instead of an HTML result?

本小妞迷上赌 提交于 2019-12-11 08:41:41
问题 I have a restful web service resource for which I've defined both XML and HTML methods. For desktop browsers the service accurately produces HTML, and for the Android client I've written it accurately produces XML. When it comes to mobile browsers however, the service produces XML, where it should produce HTML. One method is annotated with @Produces({MediaType.TEXT_HTML}) And the other with @Produces({MediaType.APPLICATION_XML}) Do I need to look at more than the Accept header to get the

how to check if browser window has focus in “mobile web browser”

老子叫甜甜 提交于 2019-12-11 08:40:56
问题 I am not able to test this event on chrome mobile web browser, https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus I would like to test application, such that user clicks on home page of mobile phone and then I want to take certain action in my application. Note : Basically on web browser I am able to achieve this functionality using document.hasfocus, window.blur but not on mobile web browser For eg. http://jsfiddle.net/QkzvP/ $(function(){ window['hasFocus'] = false; $(window

Qooxdoo: Reuse desktop classes in mobile application

时间秒杀一切 提交于 2019-12-11 08:39:31
问题 I have a full-grown qooxdoo desktop application and a freshly created mobile application. I want to reuse existing classes from my desktop app in my mobile app. I modified the configuration file so that the compiler knows about the paths. Just adding a desktop widget to a mobile page is not possible because they seem to be completely incompatible: var title = new myapp.ui.basic.Label("Test"); page1.getContent().add(title); produces: Uncaught TypeError: Object #<HTMLDivElement> has no method

Location.reload() on mobile JS app

僤鯓⒐⒋嵵緔 提交于 2019-12-11 08:39:29
问题 On a desktop, you can use location.reload(); and it will reload the page, restarting the code on it. But what if I wanted to 'reload' a javascript app? Is there a way to do so? Thanks! location.reload(); // Page reloads on desktop, app does nothing on mobile 回答1: There's 534 different ways to reload a page in JavaScript. Take your pick: location = location location = location.href location = window.location location = self.location location = window.location.href location = self.location.href

How to keep a mobile device from switching off its display when showing a HTML page

╄→гoц情女王★ 提交于 2019-12-11 08:28:51
问题 is it possible to tell a mobile browser, that as long as a certain HTML page is displayed, the device should not turn off its screen? I want to build something like Project Blinkenlights, but every participant brings his/her own pixel. To set each display to a certain color at a given point in time is managable, just let each one open a website that shows a blank page and changes the background to color the screen. I'd use JavaScript to link the devices and have them log into a control server