Archive for the 'Javascript' Category

Meet Control.js

Tuesday, July 12th, 2011

Control.js is a ultra light-weight framework for javascript to standardize name-spacing, organize initialization, and enforce reusability. The framework helps: * Control the HTML api to javascript object * Control the name space where the object is created * Control when each widget initialized Control.js has a dependency on jQuery. Assuming that is already on the [...]

Read the rest of this entry »

Fancy Faq

Friday, November 7th, 2008

This is a script I wrote a while back and wanted to share. The idea is to make frequently ask question (faq) pages easier to browse by toggling the visibility of the answers.  The solution is unobtrusive and fails quietly if the user doesn’t have javascript enabled. Example: Test 1 Lorem ipsum dolor sit amet, [...]

Read the rest of this entry »

I ran into a problem where I wanted one single array of all of the pages list items’s where the only thing they had in common was that the parent parent node has a class name of  ”tabs”. Here is a slimed down version of what I had:  <div main="main"> <div class="tabs"> <ul> <li>One</li> </ul> [...]

Read the rest of this entry »

Class Names and ID’s

Monday, April 28th, 2008

At work we have a lot of css files. 79 to be exact. The code itself is organized pretty well and I am very happy with that aspect of it. There is however one thing that I hate. That is just about any use of id’s as a css selector. Current wisdom suggests you should [...]

Read the rest of this entry »