Web Design


9
Nov 11

jQuery .keyup() vs .change() vs .bind()

I’ve found that using .keyup() in jQuery doesn’t always work like I want. For example, if I want to ensure that a user can’t put a special character into an input field I want to check for that character every time the input changes. Only using .keyup() allows someone to right-click and paste a bad value in.

Instead I use .bind(“change keyup input”) to catch all changes on an input field, regardless of how they are done.

For example:

// detect the change
$('input#myId').bind("change keyup input",function() {
    // if there's a bad value
    if (this.value.match(/[^a-zA-Z0-9\-_\s]/g)) {
        // replace it with nothing
        this.value = this.value.replace(/[^a-zA-Z0-9\-_\s]/g, '');
    }
});

Pretty simple, eh?

If you liked this you should follow me on Twitter where I tweet about startups, code, and other useful things.


6
Feb 09

Cheap Vinyl Cutting

Running multiple businesses and being friends with similar people we all know how expensive it is to have any sort of signs made. We’re very much do-it-yourself kind of people, so we bought a vinyl cutter.

First off, this thing was cheap. We shopped around and found a cutter from US Cutters on eBay (don’t buy from their website). After negotiating my own shipping the end price door to door was around $505. Not too shabby for a 36″ vinyl cutting monster.

The cutter itself is about 50″ long and it comes with a stand. Along with the tiny little cutting blades there is a pen plotting attachment that you can use to draw with.

We’ve cut a few things already, mostly stuff for Rob’s farm as you will see in the pictures.

Applying vinyl is pretty straight forward as long as you think things through in advance. It’s really sticky and once it’s on whatever surface you are using it’s not really coming off without being destroyed.

Anyway, with the amount we spent it’ll save us a fortune in sign making costs. Since cutting a few yards of vinyl ourselves will cost about $4/yard and having a shop do it would cost 10 times that.


2
Feb 09

CSS Frameworks

I’m going to start developing sites using a CSS framework. I’ve read lots of arguments for and against and I feel like I won’t be delving into super complicated content anytime soon and therefore a prebuilt framework should speed things up a lot.

That’s really the goal that myself and Rob and going for, speed. We’re aiming to create inexpensive, customized, and well designed websites for small businesses and organizations. In order to keep prices down and profits up that means we need to be fast. I think that using a CSS framework will help me out.

I watched Yahoo’s YUI introduction video by Nate Koechley and it taught me a lot. Yes I have to submit to their div names and whatnot but I think it’ll speed things up.


24
Jan 09

Free Community WiFi Routers Available!

wifilogoI put up the PayPal page for our Free WiFi Project. Now anyone is able to easily order a router from us.

I made the “executive” decision to start calling each device a Community Router. Alternatively you could say Community HotSpot or Community Node, just throw Community in there because that’s what it’s all about ;)

Whether you want to help out at home or work you can order a community router on our website for $60. We’ll send you a box in the mail with instructions and everything you need to get started.

Tell your friends and let’s get Edmonton connected!


29
Jul 08

New Open-Mesh Logo Disappoints

This morning I noticed that Open-Mesh introduced a new logo.

I certainly hope it’s a stop-gap before a better logo because this one looks like someone spent five minutes learning Photoshop while making it.

To Mike and anyone involved with Open-Mesh, I suggest you check out Worth1000. It’s an awesome site where you can get a really quality logo for only a couple hundred dollars.


Edmonton Computer Repair