Regular Expression for Removing HTML Tags

Posted on
By Addam Driver

Here is a regex (regular expression) solution to remove HTML tags from content that doesn’t effect the content in javaScript or anything else for that matter… “/(<([^>]+)>)/ig” Continue reading

NodeJS, ExpressJS and MustacheJS Template Engine

Posted on
By Addam Driver

Here is a very scaled back way of using NodeJS, ExpressJS and Mustache JS to render full blown web pages using HTML templates. I seem to think this is a much easier solution than what I’ve seen so far on the web. Continue reading

Listen for Folder or File Changes Using “Node.js”

Posted on
By Addam Driver

Here is a quick tutorial on using fs.watchFile and fs.readFile in node.js. This will listen or “watch” for file changes on the server and then spit the contents of the file out to the console. However once you get a handle to the data you can do something more useful with it. Let’s check it out.

Continue reading

How to Search a JavaScript Object Array

Posted on
By Addam Driver

Searching a javaScript object can be a little tricky. While working on a project I found the need to search a dataset and do something useful with the findings. So my team and I came up with this nifty little script to allow an object to be searched by single values, multiple values and even wild cards. It’s fast and extremely easy to use. Continue reading

CSS @font-face… Custom Web Fonts

Posted on
By Addam Driver

SO! ever wanted to put a custom webfont on you’re web page? Well… you’re in luck with a simple css tag called @font-face. This tag isn’t new. It even supported in IE 5. I don’t think it was wildly adopted because either people didn’t know it existed or fonts were too heavy for the connections at the time. I think it’s a little of both. Continue reading

JavaScript Functions Best Practices Using Options

Posted on
By Addam Driver

Writing out javaScript functions is a no brainer. I was introduced to this thing called “options” a little while back from a friend of mine at Adobe. This isn’t “new” but it’s definitely REALLY USEFUL. This goes down as one of the “Best Practices” in my book. Continue reading

Get Length of JavaScript Object Array

Posted on
By Addam Driver

Unlike javaScript arrays, the “.length” property doesn’t exist in objects. Why? because it’s an object of data. Just a place to store stuff. So here’s a small and simple script you can run to return the length of an object so you can sift through it. Continue reading

How to add IE9 pinning Tasks and Jumplists to your site

Posted on
By Addam Driver

Microsoft launched Internet Explorer 9 not too long ago. With that launch if you have Windows Vista or above, you have this neat functionality called “Pinning”. Basically a user can take your site, pin it to the Windows tool bar and it creates what they call a “jump list”.

Continue reading

HTML Ellipsis using CSS

Posted on
By Addam Driver

For the longest time clients use to always think having an ellipsis “…” would solve all their problems. There are all kinds of back-end and javaScript solutions. Here is a CSS solutions that are pretty easy to use. Check this code out!

Continue reading

Internet Explorer Hacks for IE6, IE7 and IE8

Posted on
By Addam Driver

Internet Explorer has problems! IE6, IE7, IE8 and IE9 render stuff differently and here are some hacks to help you get around all of the crap Microsoft makes us go through. BOOOOO! Continue reading

CSS Methods

HTML Goodies

JavaScript

mustache

node.js

The HTML Writers Guild IWA