usability

How to use the <label> tag in ASP.NET?

和自甴很熟 提交于 2019-11-27 06:57:27
How can I use the <label> tag within an ASP.NET application? I want it to be valid, accessible, and usable. I understand the optimal HTML way is this: <label for="Username">Username:</label> <input type="text" id="Username" runat="server" /> But if the above code is in an ASP.NET user control, the input ID will change, meaning the label's "for" attribute is useless. I could make the label tag a server control and set its "for" attribute in the code ( Username.ClientID ), but it seems like a lot of work for such a simple thing. I've also seen this HTML used in the past: <label> <span>Username<

Optimize website for touch devices

北慕城南 提交于 2019-11-27 05:57:01
On a touch device like iPhone/iPad/Android it can be difficult to hit a small button with your finger. There is no cross-browser way to detect touch devices with CSS media queries that I know of. So I check if the browser has support for javascript touch events. Until now, other browsers haven't supported them, but the latest Google Chrome on dev channel enabled touch events (even for non touch devices). And I suspect other browser makers will follow, since laptops with touch screens are comming . Update: It was a bug in Chrome, so now the JavaScript detection works again . This is the test I

How can I handle time zones in my webapp?

早过忘川 提交于 2019-11-27 05:49:36
I'm looking for better understanding of the following user story: John works in Sidney. At 9:00 in the morning, he logs an event in a web app that runs on a server in Zurich. The next day, he travels to New York for an emergency meeting in which the event should be discussed. During the meeting, he searches for the event by date and time. As I see it, there are at least two issues here: How should I save the time stamps in the database How should I present them in the UI When John searches the event, he will know that it happened at 9:00 but what should he enter in the web browser? He won't

Minimum sensible button size on iPhone

微笑、不失礼 提交于 2019-11-26 18:48:13
问题 I'm designing an iPhone app that features a rather large set of onscreen rounded rect buttons. Given finger-based touchscreen UI, what do you think would be the smallest sensible button size? I need to fit as many of them as I can in the viewport without compromising the usability too much. Maybe there's an Apple-recommended minimum size? Right now it's 33x33, and it looked OK on a simulator, but I was playing with the app on a real phone last night, and it was awkward - the buttons felt too

Separators For Navigation

六眼飞鱼酱① 提交于 2019-11-26 17:26:10
问题 I need to add separators between elements of navigation. Separators are images. My HTML structure is like: ol>li>a>img . Here I come to two possible solutions: To add more li tags for separation (boo!), Include separator in image of each element (this is better, but it makes possibility that user may click on, example, "Home", but get to "Services", because they are one behind the other and user may accidentally click on separator that belongs to "Services"); What to do? 回答1: Simply use the

Separators For Navigation

╄→尐↘猪︶ㄣ 提交于 2019-11-26 17:08:22
I need to add separators between elements of navigation. Separators are images. My HTML structure is like: ol>li>a>img . Here I come to two possible solutions: To add more li tags for separation (boo!), Include separator in image of each element (this is better, but it makes possibility that user may click on, example, "Home", but get to "Services", because they are one behind the other and user may accidentally click on separator that belongs to "Services"); What to do? Simply use the separator image as a background image on the li . To get it to only appear in between list items, position

Moving a focus when the input text field reaches a max length

穿精又带淫゛_ 提交于 2019-11-26 13:03:33
问题 I do have a credit card number form. The number is divided into four parts just as on a real credit card. I want to add a JavaScript taste to the form where when a user types four letters in a field, the focus automatically goes to the next tag. But not in the last tag. By doing this, a user doesn\'t have to type \"tab\" key to move a focus. It is okay to add some extra class, id or name in the tags. <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/> <title

How to use the <label> tag in ASP.NET?

邮差的信 提交于 2019-11-26 13:00:27
问题 How can I use the <label> tag within an ASP.NET application? I want it to be valid, accessible, and usable. I understand the optimal HTML way is this: <label for=\"Username\">Username:</label> <input type=\"text\" id=\"Username\" runat=\"server\" /> But if the above code is in an ASP.NET user control, the input ID will change, meaning the label\'s \"for\" attribute is useless. I could make the label tag a server control and set its \"for\" attribute in the code ( Username.ClientID ), but it

Optimize website for touch devices

帅比萌擦擦* 提交于 2019-11-26 11:47:59
问题 On a touch device like iPhone/iPad/Android it can be difficult to hit a small button with your finger. There is no cross-browser way to detect touch devices with CSS media queries that I know of. So I check if the browser has support for javascript touch events. Until now, other browsers haven\'t supported them, but the latest Google Chrome on dev channel enabled touch events (even for non touch devices). And I suspect other browser makers will follow, since laptops with touch screens are

How can I handle time zones in my webapp?

心已入冬 提交于 2019-11-26 11:45:21
问题 I\'m looking for better understanding of the following user story: John works in Sidney. At 9:00 in the morning, he logs an event in a web app that runs on a server in Zurich. The next day, he travels to New York for an emergency meeting in which the event should be discussed. During the meeting, he searches for the event by date and time. As I see it, there are at least two issues here: How should I save the time stamps in the database How should I present them in the UI When John searches