By Ryan on February 25, 2010
On a recent project, I used ajax to render a full cell of a table upon clicking it. I found that without some kind of queue, my clients would click on a bunch to expand them, but only the first would render. Mootools offers a plugin in mootools more called Request.Queue, but that wasn’t what [...]
Posted in Mootools | Tagged ajax, chain, link, Mootools, queue, request
By Ryan on January 13, 2010
I was adding some much needed events to my GoodCarousel plugin for MooTools recently. I added what I thought others might need,
startUp, beforeSlide, afterSlide, end, startOver, mouseEnter, mouseLeave
But since I’m lazy, I didn’t want to explicitly write a function for each of those events and then put them in options argument. I’m just too lazy. [...]
Posted in Mootools | Tagged events, Mootools, testing
By Ryan on January 7, 2010
Sometimes you don’t want to replace an element with another one, you just want a placeholder, so you can put it back later. I wrote takeOut and putBack to help out with that.
Element.implement({
takeOut: function(elementType) {
var elementType = ($type(elementType) == "string" ?
[...]
Posted in Mootools | Tagged element, implement, Mootools, putBack, takeOut
By Ryan on December 31, 2009
So it’s the end of 2009. I addressed this year in a recent post of mine and I really don’t have anymore to add to that. But instead, I’d like to give my thanks to a bunch of organizations and software.
MooTools
MooTools has been my javascript fasination since the dawn of time and I still love [...]
Posted in Abstract | Tagged 2009, Google, Microsoft, Mootools, Wordpress
By Ryan on December 12, 2009
It’s the moment everyone has been waiting for: the Mootools Forge has been released. I talked about it in January of 2009. We knew it was heading for a fall 2009 release, and just a few weeks before 2010, here it is!
So here’s a brief overview of the Mootools Forge.
Popular plugins get a promotion plug [...]
Posted in Abstract | Tagged forge, Mootools, plugins
By Ryan on October 24, 2009
Hey there. I’m trying to get this plugin into the Mootools Forge but I’ve been having a hard time getting it to work. So in the mean time, checkout the repository on github.
GoodCarousel is a plugin made with Mootools 1.2.3. It is made to slide over to, not fade to, the next slide and uses [...]
Posted in Javascript, Mootools | Tagged goodcarousel, Javascript, Mootools, plugin
By Ryan on September 4, 2009
The mooWalkthrough has been around for a couple years now. I know that people read it but I don’t see or hear much feedback such as likes and dislikes about the content, pacing, structure and so on.
Every school year I take a couple weeks and rewrite some of it. Last last year I bit [...]
Posted in Mootools | Tagged Mootools, mooWalkthrough
By Ryan on August 26, 2009
GoodCorners is a tiny Mootools plugin that can apply the CSS3 border-radius to elements using a unified syntax so you can have beautiful rounded corners.
Usage
GoodCorners can be used in a couple different ways. Both parameters are optional. Omitting both will automatically round any elements with the gc class already on them. If you don’t supply [...]
Posted in Javascript, Mootools | Tagged good corners, Mootools, round corners, rounded edges
By Ryan on July 15, 2009
Mootools doesn’t offer a native way to randomize an array but it does offer a way to get a single random element from an array.
You can extend Mootools to have an Array.randomize method. It’s really easy to do.
Array.implement({
randomize: function() {
return this.sort(function() {return 0.5 – Math.random();});
}
});
Now you can easily call randomize on an array and you’ll [...]
Posted in Mootools | Tagged array, Mootools, randomize
By Ryan on May 9, 2009
It’s been about a month since I last published a blog post but during that time I haven’t been sitting idle. My other website, which is private file hosting, has had a front-page redesign. Check out the main page of mntbd.com.
What you’ll see there is my pretty neat javascript clock! It is something I made [...]
Posted in Design, Javascript | Tagged CSS, Design, mntbd, Mootools, yui