Wednesday, 07 October 2009 20:34

I was working on a bit of script today, and happened upon an interesting happenstance. I was trying to change the text of an element dynamically, and this text needed to include a non-breaking space. My original code seemed to render the entity as text, so this:

elem.setText( ' ' );

literally printed the text " " instead of the proper entity.

Monday, 20 July 2009 10:37

If you've ever done any scripting using the Mootools library that ships with Joomla, perhaps you've come across a situation where you needed to prevent a link from following it's assigned location. Mootools has a function for Events called 'stop', but it is not extended to Events in 1.11. So how do you stop the link from following it's href?

Last Updated on Monday, 20 July 2009 10:47
Thursday, 25 June 2009 17:51

There's a really cool site at konamicodesites.com that lists a whole bunch of sites that have easter eggs if you type a certain pattern while visiting. That pattern is the famous Konami Code. It lists some pretty large sites, like Facebook and Digg.

I went ahead and wrote a quick little bit of JavaScript that implements this functionality. It's loaded into the site you're looking at right now!

Last Updated on Monday, 07 December 2009 04:53
Sunday, 07 June 2009 01:02

Some of you may have noticed the box at the bottom of the screen that keeps track of the page's vertical position. I wrote this in Mootools to sort of mimic some command line Linux tools like "less", "more", and "man".

Last Updated on Saturday, 05 December 2009 13:14
Tuesday, 28 April 2009 19:06

Valid XHTML Strict doesn't support the 'target' tag for links, but some webmasters (me included) don't like the idea of having external links draw our visitors away, possibly to never return. That's why the 'target' tag is great - external links can open new windows (or tabs, browser willing), right?

Last Updated on Tuesday, 28 April 2009 19:21
Page 1 of 2

Featured Extensions

$10.00
$5.00
You Save: $5.00
$1.00
FREE
You Save: $1.00
$3.00
$3.00
Joomla Extensions