user-experience

Accessible toggle

浪尽此生 提交于 2019-11-28 13:05:18
We are redesigning our website and there are some concerns internally that accessibility affects the design element. A toggle mode was suggested. Our standard version would still be accessible with the exception of contrast ratio and larger font size, which would be made available when you toggle to accessible mode. Has anyone had any experience with this? WCAG 2.0 allows a conforming alternate version (under some conditions ): For Level A conformance (the minimum level of conformance), the Web page satisfies all the Level A Success Criteria, or a conforming alternate version is provided.

How to specify units in Dialog Units in WPF?

流过昼夜 提交于 2019-11-28 08:19:51
问题 i'm trying to figure out how to layout a simple dialog in WPF using the proper dialog units (DLUs). i've come up with a simple r example, that cuts straight to the problem: You can check the Windows UX Guidelines to see where these measurements come from. The short version is: dlu = dialog unit dlu is based on the font size ( items change with user's font size ) a horizontal dlu is different from a vertical dlu ( dlu's are not square ) This comes from the definition of a dialog unit: the

Possible to detect if a user has multiple tabs of your site open?

痴心易碎 提交于 2019-11-28 05:47:27
I'm just thinking about the whole site registration process. A user goes to your site, signs up, and then you tell him you've sent him an email and he needs to verify his email address. So he hits Ctrl + T , pops open a new tab, hits his Gmail fav button, doesn't read a word of your lengthy welcome email, but clicks the first link he sees. Gmail opens your site in yet another tab... He doesn't need nor want two tabs for your site open, he just wants to view that darn page you've disallowed him access to until he registers. So what do we do? I saw one site (but I forget what it was) that did a

How does Financial Times add a disclaimer when pasting text?

天大地大妈咪最大 提交于 2019-11-27 20:46:37
问题 Here is an example of what happens when pasting text from Financial Times, the top paragraph is added. Thanks in advance! Example: Please respect FT.com's ts&cs and copyright policy which allow you to: share links; copy content for >personal use; & redistribute limited extracts. Email ftsales.support@ft.com to buy additional rights >or use this link to reference the article - http://www.ft.com/cms/s/0/792f1aec->9600-11e0-8256-00144feab49a.html#ixzz1PFrYZiD0 Goldman Sachs gave a paid

Make a wizard like application in Android

不想你离开。 提交于 2019-11-27 12:40:31
Which you think is the best way of doing a wizard like application (user can navigate between screens with a next and back button, and each screen has to save some state data) in Android platform. I mainly can think in two approaches: Having one activity+view for each screen and then i make the screen switch by calling each activity. What make this nice is that i can use the system back button as my back handler and i don't have to take care of that myself, aslo each activity will save it's own state. Having one activity and many views, and what i switch views in each screen change, this helps

How to set initial values for NSUserDefault Keys?

陌路散爱 提交于 2019-11-27 11:33:39
I want to set some initial values for my NSUserDefault keys so that the first run of the app has some reasonable initial settings. I thought I ran across a simple way to do this in the app bundle .plist, but now I can't find it. Any ideas? You should use the registerDefaults method of NSUserDefaults . Prepare a plist file in your bundle that contains the default preferences and then use that plist to register the defaults. NSString *defaultPrefsFile = [[NSBundle mainBundle] pathForResource:@"defaultPrefs" ofType:@"plist"]; NSDictionary *defaultPreferences = [NSDictionary

Characters to avoid in automatically generated passwords

这一生的挚爱 提交于 2019-11-27 10:22:47
问题 I need to generate some passwords, I want to avoid characters that can be confused for each other. Is there a definitive list of characters I should avoid? my current list is il10o8B3Evu![]{} Are there any other pairs of characters that are easy to confuse? for special characters I was going to limit myself to those under the number keys, though I know that this differs depending on your keyboards nationality! As a rider question, I would like my passwords to be 'wordlike'do you have a

Client-side “Feature Tour” (tutorial/instructional) overlay system? [closed]

浪子不回头ぞ 提交于 2019-11-27 10:01:43
Is there a system/framework in existence which focuses on providing tutorial / help like overlays in the browser? Example: You have a webapp which requires a certain level of instruction to the user. In this instruction process you wish to "highlight" (e.g. arrow, colour shading, pulsing border, etc) a certain element on the page, with an accompanied message. This would be a true overlay, so it would function only in absolute positioning, and not interfere with the existing layout. I'm looking for an existing solution, before I consider rolling my own. Spot Thanks to Johnson for giving me a

Setting background colour of Android layout element

我与影子孤独终老i 提交于 2019-11-27 10:01:26
I am trying to, somewhat clone the design of an activity from a set of slides on Android UI design . However I am having a problem with a very simple task. I have created the layout as shown in the image, and the header is a TextView in a RelativeLayout . Now I wish to change the background colour of the RelativeLayout , however I cannot seem to figure out how. I know I can set the android:background property in the RelativeLayout tag in the XML file, but what do I set it to? I want to define a new colour that I can use in multiple places. Is it a drawable or a string ? Additionally I would

What is the most accurate way to emulate the “placeholder” attribute in browsers that don't support it natively?

北城余情 提交于 2019-11-27 09:16:56
Recently I have been looking at jquery/javascript solutions to emulating the placeholder attribute, but none of them seem to have it right. Common issues are: Native browser support is not used first The form may actually post the value of the placeholder text Inability to recognize between placeholder text and user input if the values are identical (Hey, my email IS user@example.com!! Why won't it submit? Hey I wanted to search for the string "Search" but it won't let me!) Difficult to style or distinguish between regular text and placeholder text Obtrusive implementation (almost always. I