The Perfect Office – Ortho Mouse and Apple new releases

Perfect Office - Ortho Mouse and Apple new releases

We’ve seen some great gadgets and equipment for designers. So many cool stuff, that we could actually assemble infinite perfect office spaces! Every week we’ll assemble a perfect office, and we’d like you to help us. What equipment would the perfect office have?

Today we got some great stuff for you! Halloween is coming, so why not scratch your back with a zombie’s arm? Also, for those who love everything ergonomic, an awesome mouse for you! And the greatest part is the release of new Apple products! A ultra-thin Apple iMac, the new Mac Mini and the beloved Apple iPad gets its mini version! Check it out. Don’t forget that you may suggest via twitter: @paulogabriel – I hope you enjoy these! Cheers. 😉

Brought to you by: Sponsor: 7Gadgets.com

Zombie Back Scratcher

The Perfect Office - Ortho Mouse and Apple new releases

The handcrafted and painted back scratcher looks like the undead Zombie arm and hand. It is made from tough urethane resin. (at Like Cool)

Monty Python Ministry of Silly Walks clock

The Perfect Office - Ortho Mouse and Apple new releases

The Monty Python Ministry of Silly Walks clock is created from 20×20 cm canvas by iamnahald. (at Like Cool)

Ortho Mouse Wireless

The Perfect Office - Ortho Mouse and Apple new releases

The OrthoVia OrthoMouse is designed using scientific evidence which indicates the risk of carpal tunnel injury can be reduced by utilizing a forearm rotation angle and an MP joint angle of 45°. Additionally, a mouse also needs to be the correct size to fit a hand. The OrthoMouse encourages a good mousing posture and is customizable. This ergonomic mouse offers three different palm prolongers and two different sizes of upper adapters, allowing you to custom fit the mouse so your hand can rest comfortably. (at 7 Gadgets)

Apple Mac Mini Desktop

The Perfect Office - Ortho Mouse and Apple new releases

The Apple Mac mini packs even more power, thanks to the latest dual-core and quad-core Intel processors. It also comes with integrated Intel HD Graphics 4000, Thunderbolt, USB 3, and OS X Mountain Lion–the latest release of the world’s most advanced desktop operating system.

Despite its smaller size, the Mac mini offers a full range of ports for connecting to your existing peripherals–from keyboards and mice to external hard drives and displays (via the Thunderbolt and HDMI ports). And when you’re ready to add more memory, the Mac mini’s bottom removable panel makes the upgrade process a breeze.

With USB 3 built into the Mac mini, you can connect your external hard drive and transfer large files in seconds instead of minutes. Every Mac mini comes with four USB 3 ports–with speeds up to 10 times faster than USB 2–and you can connect all your USB-compatible devices, including your iPhone, iPad, iPod, or digital camera.(at 7 Gadgets)

Apple iMac 2012

The Perfect Office - Ortho Mouse and Apple new releases

It’d been awhile since Apple had rolled out a new iMac design — and now we know why. The all-new Apple iMac 2012 features an updated design that’s just 5mm thin at the corners and is 40% smaller by volume than its predecessors. It’s powered by quad-core Intel Core i5 processors, boasts a completely reengineered display that reduces reflections by 75%, can hold up to 32GB of RAM, and can be configured with the new Fusion Drive storage option that combines 128GB of flash memory with a 1TB or 3TB hard drive to offer most of the speed of an SSD with the vast storage of a standard hard drive. The 21.5-inch model is coming in November, while those wanting the 27-inch model will be waiting ’til December. (at Uncrate)

Apple iPad Mini

The Perfect Office - Ortho Mouse and Apple new releases

The iPad mini is the long-awaited smaller sibling to Apple’s blockbuster tablet. Sporting an aluminum body that’s just 7.2mm thin and weighs just 0.68 pounds, it still manages to pack in a 7.9-inch display, an A5 processor, a 5MP iSight camera, a front-facing FaceTime HD camera, and Apple’s new Lightning connector. Available in black or white, and arriving November 2. (at Uncrate)

Posted in Blog | Comments Off on The Perfect Office – Ortho Mouse and Apple new releases

Restricting input with jQuery

If there’s one thing that drives me insane online, it’s when input forms allow me to enter incorrect data, only to point out the mistake after I try and submit it. It seems like half the forms I submit have to be refilled and submitted over again because I didn’t include an uppercase letter in my password, or I did, or the password can only be numerical, or some other requirement nobody thought to mention.

The way the brain works, we look for solutions based on the tools in front of us. You don’t enter uppercase letters at the ATM do you? No, because the ATM keypad only has numbers. You might hit the wrong number by mistake, but you’ve never tried to enter your email address, or your mother’s maiden name.

Therein lies the problem, the keyboard that you use complicates inputting data online. It probably has between 75 and 100 keys and even more characters are easily accessible by holding multi-key combinations. Using it to log into Facebook is rather like popping out for milk in a Ferrari.

Of course, your keyboard has to have more input options than any particular form field requires, because it’s a multi-use tool; you can’t practically have a different keyboard for every possible type of input.

This leads to a serious usability issue: users are constantly being asked to ‘correct’ their information to suit a form. That’s a great way to increase frustration and lose business.

Touchscreen devices have made great strides in this area by modifying the onscreen keyboard to tailor the types of input possible, to the data required; enter an email address on an iPhone for example, and you won’t be able to enter a space by mistake, because the spacebar isn’t provided.

Digital keyboard image via Shutterstock

Until we’re all working on touchscreens, we need a temporary solution, and there’s actually quite a simple one: using jQuery we can slip a layer of intelligence between the keyboard and the input field and only accept the data if it falls within expected bounds, ignoring anything outside those bounds, confident that it’s an error.

First, we need to set up an input field in HTML that we want to restrict, a phone number for example:

<fieldset>
<label for="phone">Phone:</label>
<input type="text" id="phone" />
</fieldset>

Then, in the document’s head, we need to import jQuery:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>

And immediately afterwards add the following script:

<script type="text/javascript">
$(document).ready(function() {
    $('.phoneInput').keypress(function(key) {
        if(key.charCode < 48 || key.charCode > 57) return false;
    });
</script>

This script runs once the document is ready, attaching a keypress method to the .phoneInput input field. We then detect which key has been pressed based on its charCode property — the number 0 is assigned the code 48, 1 is 49 and so forth — any key that’s outside our range should return false. If the method returns false the browser will simply ignore the keystroke.

This means that if the user hits any key that isn’t 0–9 the input will be ignored, effectively restricting the input to numbers.

We can apply the same technique to almost any field, building up complex rules using logical AND and logical OR. For example, if we wanted to restrict input for a surname, we would need to restrict input to lowercase letters (97–122), uppercase characters (65 – 90) and the occasional hyphen (45):

$('.surnameInput').keypress(function(key) {
if((key.charCode < 97 || key.charCode > 122) && (key.charCode < 65 || key.charCode > 90) && (key.charCode != 45)) return false;
});

You can try out a demo here.

This code is a progressive enhancement. It will take some of the strain off your server validation, but that doesn’t mean that you shouldn’t also validate information you’re gathering.

Prevention, as the saying goes, is better than cure; and using this tip you’ll see a reduction in the number of people who start, but don’t complete your forms, especially when complex data requirements are involved.

 

Do users regularly make mistakes on your forms? How do you handle the mistakes? Let us know in the comments.

Featured image/thumbnail: keyboard image via Shutterstock

10 Cartoon Characters in 400+ poses – only $24!

Source


Posted in Blog | Comments Off on Restricting input with jQuery