user-experience

Avoid scroll-wheel hijack by embedded youtube / flash video

て烟熏妆下的殇ゞ 提交于 2019-12-06 02:45:14
I am making some improvements on a web-site that has a youtube video embedded in its home-page. I have not added this code myself, but it looks like: <object width="380" height="307"> <param name="movie" value="http://www.youtube.com/v/DooLJvsH_BY&hl=en_US&fs=1&" /> </param> <param name="allowFullScreen" value="true" /> </param> <param name="allowscriptaccess" value="always" /> </param> <embed src="http://www.youtube.com/v/DooLJvsH_BY&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="380" height="307"></embed> </object> I have a small

How can the delay before displaying meteor collections be best addressed?

笑着哭i 提交于 2019-12-06 01:26:59
Before displaying the items from a collection, meteor seems to do some processing that leaves the client window without updates. You can see this live if you surf to http://madewith.meteor.com on a reasonable machine. My 2.6GHz 4GB RAM laptop takes about 5 seconds to render the items in the list, during which there is no indication of progress and a new user in a hurry could reasonably believe the page has finished loading. Is there a way to incrementally display items from a collection, such that the server pushes to the client the first items of data on the wire, and the browser renders them

iOS Swift - How to assign a default action to all buttons programmatically

梦想与她 提交于 2019-12-06 00:27:59
问题 I'm working with an app in prototype stage of development. Some interface elements do not have any action assigned to them either through storyboard or programmatically. According to UX guidelines, I want to find these "inactive" buttons in app and have them display a "feature not available" alert when tapped during testing. Can this be done through an extension of UIButton? How can I assign a default action to UIButton to show an alert unless another action is assigned via interface builder

How can I recognize slow devices in my website?

狂风中的少年 提交于 2019-12-06 00:20:59
问题 When adapting a web page for mobile devices I always rely on css media queries. Recently I no longer worry only about the screen size, but also the javascript engine of many mobile devices. Some common javascript effects that rely on window scrolls or a quick sequence of DOM transformations work really bad on slow devices. Is there any way to guess the device performance so I can enable/disable elements that look bad on slow devices? So far I can only think of bad solutions: screen size.

Don't allow typing numbers between max and min value

╄→尐↘猪︶ㄣ 提交于 2019-12-05 23:47:47
I'm working on an Angular 4 project. I have an HTML <input type="number"> with min max and step attributes. My goal is to prevent typing numbers beyond the min-max range that is user friendly. How can I do that? function myFunction(e) { var min = -100; var max = 100; var txtValue = document.getElementById("txt").value; var pressedValue = e.key; var combined = parseFloat(txtValue, pressedValue); console.log(`OLD:${txtValue}\nNEW:${pressedValue}\nCOMBINED:${combined}`); if (combined > max) { e.preventDefault(); console.log('ohhw snapp'); } } <input type="number" id="txt" value="Hello" onkeydown=

How to go about serving the same app on different resolutions/screens

岁酱吖の 提交于 2019-12-05 05:41:31
问题 Scenario : You need to expose the same app on different screens - let's say a standard 15''-17'' a portable 10'' and a mobile 4'', possibly working on different resolutions. Question : Do you attempt to go for a liquid layout that gets rearranged depending on the real estate available or do you roll N (one for each range) separate UI layers, optimized for each specific supported resolution/screen-size. What's the industry standard on this kind of problems? Does it make sense to come up with

When doing AJAX edit to the database, should I update the interface immediately with the new data

喜你入骨 提交于 2019-12-05 04:45:44
I'm using inline-edit to update text in the database with AJAX. This is basically the process, pretty usual stuff: text is not editable I click the text, it becomes editable I type the new text then click to send the updated text to the database then return the text to non-editable format My question is when should I update the interface with the new data? Should I update it immediately before the ajax call, or should I wait for the update response to return from the database? My concern: If I don't update the interface immediately and wait to get the response from the database, then I've lost

Javascript capturing user activity

佐手、 提交于 2019-12-04 22:06:17
Is there an existing js lib for capturing user activity browser side? ie. Scrolling, mouse moving, mouse clicking etc. I've been googling, searching stackoverflow and github but I keep getting links to paid analytic programs which aren't quite what I'm after. I'm tempted to start building something myself, but the more I think about it, the harder I realise it'll be and I'd be better off using some existing lib if available. What I'm thinking. Would this be an appropriate way to go about it? I'm assuming the best way is to listen on the body or window element and capture all desired events

jQuery - Trigger click event on links with spacebar?

*爱你&永不变心* 提交于 2019-12-04 19:24:25
问题 It looks like in most browsers, an <input type="submit"> treats both [spacebar] and [enter] as a click, but an <a> link only treats [enter] as a click. My app uses a number of links formatted to simulate buttons, so a user that is accustomed to tabbing to a button and pressing [spacebar] will be frustrated. This bit of jQuery solves the problem: $("a.Button").die("keypress").live("keypress", function(e) { if (e.which == 32) { $(this).trigger("click"); e.preventDefault(); } }); My question: Is

Need to be able to change Font size across an entire application for accesibility

感情迁移 提交于 2019-12-04 18:18:32
I have built a GIS routing application, using WPF, MVVM, and Visual Studio 2015. When I test the app on a laptop, the fonts seem smaller than when I tested in debug mode on my pc. Is there a way to create a feature in my application settings so a user could increase the size of all of the fonts, globally, without affecting the graphics? I was hoping this would be similar to a webpage design with the 'ctrl +'. Any help would be greatly appreciated. I've added similar functionality to my application using ViewBox. Note, it doesn't change the font size, but instead "zooms" all aspects of the user