Browse: Home / Javascript
By Ryan on June 25, 2010
I’ve been doing some hefty MooTools development lately, and I ran into a odd ball error in that endeavor. I put it aside for a while, ignoring it while I worked on other code. Eventuallly, I had to face it though, so here are my remarks in that journey. First, the error in question is [...]
Posted in Error, Javascript, Mootools | Tagged call, Error, Mootools, mutator, solution, solve |
By Ryan on June 4, 2010
Lately, I have been working with the fancy HTML 5 canvas element. One of the errors that I encountered during development was this oddity: Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 After making sure every value was absolutely defined in the code and still getting the error, I was stumped. I asked on twitter what causes [...]
Posted in Javascript, Tips | Tagged canvas, dom, html5, index size error |
By Ryan on February 8, 2010
Firebug will scream and shout about Invalid Object Initialization if you mess just a little something up. Firebug does this a lot. It is an unhelpful error because Firebug will direct you to the first line of your object, not where the problem is. Firebug gave me this, more or less. That wasn’t helpful. (Why [...]
Posted in Javascript, Tips | Tagged Error, Javascript |
By Ryan on November 24, 2009
Mozilla offers a let in javascript 1.7. The let keyword isn’t support by other browsers yet so using it isn’t generally recomended but it nice to catch up on the latest javascript constructs. A Parallel First, a parallel. I’ve coded in Java the last couple of months because of school. During said time, I discovered [...]
Posted in Javascript | Tagged block, Javascript, let, scope |
By Ryan on October 28, 2009
Have you ever added a couple of console.log calls to your javascript, test it in Firefox, then go into Internet Explorer and see tons of mysterious errors popup? I sure have, I always forget about those console.logs that are interwoven in my code. While it isn’t hard to do a replace on them all, I [...]
Posted in Javascript, Tips | Tagged console.log, firebug, Javascript, Tips |
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 [...]
Posted in Javascript, Mootools | Tagged goodcarousel, Javascript, Mootools, plugin |
By Ryan on September 17, 2009
I was just reading David Walsh’s post about Possessives. It was a very clever use of PHP. I remembered a helper method I wrote last year that was somewhat similar in use, another form of coding English. It was Pluralization. At first I just added s if the first argument was not 1 and that [...]
Posted in Java, Javascript, PHP | Tagged Java, Javascript, PHP, pluralize |
By Ryan on September 10, 2009
PasteBin, Pastie and of course, Gist. There are tons of pasting services. Lately however, we’ve started to ask more of our neighborly paste service, we need it to run and demonstrate our javascript, basically, we need a javascript playground. I have found two such playgrounds, they both looks great and work well. JSBin JSBin is [...]
Posted in Javascript | Tagged Javascript, jsbin, mooshell |
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 [...]
Posted in Javascript, Mootools | Tagged good corners, Mootools, round corners, rounded edges |
By Ryan on August 22, 2009
CakePHP’s $javascript helper is useful but it can be somewhat fickle. I wanted to throw my javascript into $scripts_for_layout so it’d be in the head of the page. That’s what codeBlock is supposed to do. It seems like you get a couple of usage options. You can write all your javascript as a string and pass [...]
Posted in Javascript, PHP | Tagged CakePHP, Javascript, PHP |