June 2006
moo.fx - the next small thing
by fredbird & 7 othersmoo.fx is a superlightweight, ultratiny, megasmall javascript effects library, written with prototype.js.
It's easy to use, fast, cross-browser, standards compliant, provides controls to modify Height, Width, and Opacity with builtin checks that won't let a user break the effect with multiple crazy clicks. It's also optimized to make you write the lesser code possible.
moo.fx has been successfully tested with: Firefox, Safari and Internet Explorer. It should work in most of the gecko browsers too. Only Height and Width will work in Opera, since that browser does not support opacity.
Prototype JavaScript Framework: Class-style OO, Ajax, and more
by fredbird & 96 othersPrototype is a JavaScript framework that aims to ease development of dynamic web applications. Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere.
December 2005
Particletree · Quick Guide to Prototype
by fredbird & 27 othersJavaScript’s increasing popularity throughout the web makes it more important than ever to make sure our client side code is implemented with a nice mix of stability, speed, and reusability. One of the best ways for accomplishing this is to use a simple library and syntax to use as a foundation for every project. Thankfully, Sam Stephenson created an amazing library of functions that we can rely on called Prototype.js to ease our JavaScript development practices.
mad4milk : scroll your internal links smoothly
by fredbird & 4 othersSo, I’ve created a basic effect, to smoothly scroll from an object’s position to another.
Robert’s talk » The Ultimate getElementsByClassName
by fredbird & 5 othersTo get all a elements in the document with a “info-links” class.
getElementsByClassName(document, "a", "info-links");
To get all div elements within the element named “container”, with a “col” class.
getElementsByClassName(document.getElementById("container"), "div", "col");
To get all elements within in the document with a “click-me” class.
getElementsByClassName(document, "*", "click-me");
November 2005
Behaviour : Using CSS selectors to apply Javascript behaviours
by fredbird & 27 othersThat's why I came up with Behaviour - my solution to unobtrusive javascript behaviours.
Behaviour lets you use CSS selectors to specify elements to add javascript events to. This means that instead of writing:
September 2005
StickBlog » Blog Archive » Upload multiple files with a single file element
by fredbird & 25 othersIf you have a form where you want to allow a user to upload more than one file, you’re stuck with either adding as many file input elements as the number of files you want to upload, or possibly having new ones appear ‘magically’ through Javascript.
fredbird.org | Some CSS-related javascript utility functions
by fredbird & 2 othersQuelques functions javascript pour manipuler les attributs class des objets DOM
June 2005
Simon Willison: getElementsBySelector()
by fredbird & 2 others (via)Inspired by Andy, I decided to have a crack at something I've been thinking about trying for a long time. document.getElementsBySelector is a javascript function which takes a standard CSS style selector and returns an array of elements objects from the document that match that selector.
May 2005
Jesse Ruderman » Valid XHTML user script
by camel & 2 others
The Valid XHTML user script is an adaptation of the blogidate XML well-formedness bookmarklet. It shows a line of text under each textarea indicating whether the text is well-formed XHTML.
Jesse Ruderman » Valid XHTML user script
by fredbird & 2 othersThe Valid XHTML user script is an adaptation of the blogidate XML well-formedness bookmarklet. It shows a line of text under each textarea indicating whether the text is well-formed XHTML.
fValidate | Welcome | A high quality javascript form validation tool
by fredbird & 4 othersform validation
Showing and Hiding a DIV using CSS and Javascript
by RUDEWORKS & 8 others (via)There are many situations encountered when designing a webpage where showing and hiding a div using a link is useful.
domCollapse
by fredbird & 3 othersdomCollapse allows you to collapse and expand parts of page by clicking other parts of a page.
To identify a trigger element, you add the class "trigger" to it as an attribute. This will automatically collapse the next following element in the document tree.
Showing and Hiding a DIV using CSS and Javascript
by fredbird & 8 othersThere are many situations encountered when designing a webpage where showing and hiding a div using a link is useful.
HoverHelp
by fredbird & 7 othersSmall script to easily display hover tool tips
You can attach a popup to anything by simply giving it a class of 'hasHelp' and an id. Then adding the help text to a blockquote and giving that a class of 'helpContents' and an id of 'xxxHelp' where xxx is the id of the element it's related to.
April 2005
JavaScript Toolbox - Calendar Popup To Select Date
by fredbird & 5 othersThis script uses DHTML or Popup windows to display a calendar for the user to select a date.
January 2005
1
(24 marks)