user-experience

Don't allow typing numbers between max and min value

我的未来我决定 提交于 2019-12-07 16:03:45
问题 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

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

蹲街弑〆低调 提交于 2019-12-07 13:03:02
问题 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

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

旧街凉风 提交于 2019-12-07 00:37:38
问题 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

Best practices for implementing a multi-level Option Menu on Android?

六月ゝ 毕业季﹏ 提交于 2019-12-07 00:18:13
问题 I'm currently working on a port of an iPhone app into an Android. The iPhone app has a custom global navigation menu at the bottom of the screen, and when bringing this over to Android, it was suggested to replace this custom menu with the generic Option Menu (invoked via the option key on the device) to give it a more native Android look and feel. The issue is that the menu itself has several layers (e.g. Three main option like A, B, C, and sub-options like A1, A2, A3). I've looked around

Javascript capturing user activity

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 16:25:49
问题 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?

Why is Windows Phone 7 emulator so slow compared to, um, iPhone OS Emulator?

北城余情 提交于 2019-12-06 10:41:17
I don't mean to start a war between iPhone vs Windows Phone 7, nor am I against Windows Phone 7. But I've noticed on both of my computers Windows Phone 7 emulator (Beta and CTP) lags like it's running on a crappy last-decade Celeron computer. I have 2 computers: Macbook Pro 13" (2010 Model) with 2.4GHZ Core 2 Duo, 4GB RAM and ASUS G1 with 2.0 GHz Intel Core 2 Duo, 3GB RAM with fresh install of Windows 7. Now iPhone emulator on Mac OS X is on the other hand so much smoother, and loads faster and just has better feel to it. So why is Windows Phone 7 emulator so slow? Is that what we should

Swift: visual glitches when presenting a Main and Alternative (login/onboarding) Flow? [closed]

痴心易碎 提交于 2019-12-06 07:13:47
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I've got an App that requires the person to sign in or create an account the first time the App is launched. (Although this is not generally recommended, this is quite a specific use case.) Furthermore, if they are already signed in, when the App is updated I'd like to show them a

Occasionally connected CQRS systems - Client and Server Commands - Task based screens

最后都变了- 提交于 2019-12-06 06:19:06
Premise: It is recommended that in CQRS+DDD+ES style applications use task based screens, these screens guide the user and capture intent. These task screens can also be referred to as Inductive User Interface . Some examples of UI design guidelines that can help you create mondern, user-friendly apps: Microsoft Inductive User Interface Guidelines and, Index of UX guidelines The way I understand it, the tasks , generally speaking, should line up with Commands or Functions waiting on the Server. For example, if the User makes a change to the Customer's [first name], generally speaking this

How to encourage a user to fill in long application forms?

不羁岁月 提交于 2019-12-06 04:59:24
问题 What I can think of is pre-populating certain form input elements based on the user's geographical information. What are other ways can you think of to speed up user input on long application forms? Or at least keep them focus on completing the application form? 回答1: If you have a long form, try to prune it down. Don't ask them to fill in fields that you don't really need. If the form spans several pages, give the user some feedback as to how many more pages there are. We users hate clicking

Is there any way to invoke a Cortana response without user input?

我们两清 提交于 2019-12-06 03:28:05
I have an app I am working on for Windows 10 which should notify a user when external data reaches a certain threshold. While I can simply use Windows Notifications (and will fall back on them), I'd really like to do more integration with Cortana. (Voice activation and natural searching will be available.) Is there any way to have Cortana notify the user when the change is triggered (either with speech or via a new item on her dashboard) without a user specifically asking her? I was (and still "is", actually) also very interested in this kind of things, but as far as I could see it the only