I'm a web designer, developer, programmer, and genius.

Archive for the ‘JavaScript’ Category

ParentNode of New Elements

November 19th, 2008 | JavaScript | No Comments »

I wrote a simple script to pop-up a modal-like element when clicking on an “Add” button on the page. I wanted to insert the element into the DOM on first click, and on subsequent clicks, simply reset the form. A bug popped up in IE7 (surprise) that prevented me from checking if I had inserted the element already.

Cross-browser addEvent Function without Frameworks

October 1st, 2008 | JavaScript | No Comments »

addEvent

Making a Toggle All Checkbox

September 9th, 2008 | JavaScript | 2 Comments »

Toggle All Checkboxes

Make YUI’s Editor More Pluggable

September 3rd, 2008 | JavaScript | No Comments »

I got to play around a little bit with YUI’s (I pronounce it yoo-ey) Rich Text Editor as I implemented a low-level CMS for one of my current projects. I’ve used TinyMCE a-plenty, and wanted to check out YUI’s implementation because theoretically YUI is far easier to extend. One thing that tripped me up was the styling, which in retrospect I should have noticed, but it irked me, so I solved it in my lazy efficient programmer fashion.

Pluggable Mootools Tabs

August 12th, 2008 | JavaScript | 10 Comments »

MGFX.Tabs { Pluggable }
Last week, I released a pluggable Slideshow type Mootools class. I had written that class a while back, and since then had extended its functionality to allow me easily make tabs on any page. I wanted my tabs to have the ability to auto-switch if I wanted, so extending my Rotater class made perfect sense.

Rotater Class

August 5th, 2008 | JavaScript | 5 Comments »

I’d like to release my first public class written for the Mootools framework. I call it the Rotater class, and its purpose is for those slideshow elements on pages, but without the need for controls. Most likely used for a splash-y area that should loop infinitely through images or content.

Mootools addEvent()

July 29th, 2008 | JavaScript | 1 Comment »

Inline Javascript is evilJavascript lets us run program logic on the client-side, meaning we can change HTML Elements dynamically based on some logic without reloading the page with a new server call. This logic is run by Events that are launched from User Interaction. A common way of doing so is adding inline Javascript events, but I’d like to erradicate this scourge from the web.

SproutCore - Standards Stupid?

July 23rd, 2008 | JavaScript | No Comments »

SproutCore != Standards?

Steve Webster recently wrote an article about how horribly standards-stupid SproutCore (the Javascript framework Apple used to make MobileMe) is. He kind of has the right mind-set, in that Javascript should be a progressive enhancement to web-sites, and they should still function properly without it.

5 Mootools Links I Use

July 21st, 2008 | JavaScript | 1 Comment »

Mootools - a compact javascript framework

Mootools released version 1.2 a couple months ago. And it rocks. I find developing in Mootools to simple, and actually fun (go ahead, slap me with the geek word). I’ve been writing a few classes in my day office, and have found some rockin’ resources for leaning Mootools.

Prevent [at] Spam

May 20th, 2008 | JavaScript | No Comments »

I’ve noticed quite a few web-sites that I’ve been to have e-mails that try to protect themselves from spam. You know, the usual john at example

dot com. And that’s all fine and dandy. But I’ve seen a remarkable amount of e-mails trying to protect themselves and accomplishing nothing!