Oct 26 2007

Elements.getTotalSize(), get the total size of an array of elements

Tag: Javascript, Mootools, Web developmentJens @ 8:12 am

While creating a mootools Slider-controled image gallery navigator (fancy huh?) at work, I suddenly had the need for getting the Total size (width in this case) of all the li elements inside a ul.

Continue reading “Elements.getTotalSize(), get the total size of an array of elements”


Sep 07 2007

Json.test() for mootools

Tag: Javascript, Mootools, Web developmentJens @ 11:25 am

I wrote a small extension to the Json class in mootools, to check if a string is valid Json format.
Continue reading “Json.test() for mootools”


Sep 05 2007

$get() for mootools, reading get variables

Tag: Javascript, Mootools, Web developmentJens @ 6:21 pm

In a project at work we had the need for tampering with href’s and other url’s with JavaScript.
And beeing a mootools fanatic, I chose mootools as the framework to build my sollution on.

My general idea was to create a generic function to read the get variables from any given url, with the current location.href as default. And also be able to return the element anchor if set. This would come in handy if we ever needed to rewrite url’s before opening them with ajax or in an iframe, and to read get variables in javascript.
Continue reading “$get() for mootools, reading get variables”





Warning: stristr() [function.stristr]: Empty delimiter in /home/asocialp/public_html/wp-content/plugins/wassup/wassup.php on line 2093