Ext.util.SpriteManager

Original post date May 1st, 2007 One of the ways of improving web page performance (especially in RIA – Rich Internet Applications) where there are lots of small images that need to be displayed, e.g. on a toolbar, is to … Continue reading

Posted in Code, Javascript | Comments Off

Ext.Format extension for thousands separator formatting

A simple function, the basis of was in the public domain (see comments) to format a number with thousand separators. Ext.apply(Ext.util.Format,{ decimalSeparator : ‘.’, thousandSeparator : ‘,’, /* Adapted from http://www.mredkj.com/javascript/nfbasic.html, * Public Domain, without copyright, and can be used … Continue reading

Posted in Code, Javascript | Comments Off

101 of Memory Leak causes in JavaScript

Really nice article explaining some of the gotcha’s that can cause memory leaks in JavaScript http://www-128.ibm.com/developerworks/web/library/wa-memleak/

Posted in Code, Javascript | Comments Off

Javascript – Rails like pluralize function

Found this on scripts.dzone.com blogged for reference. * * This script depends on no outside libraries. */   Inflector = { /* * The order of all these lists has been reversed from the way * ActiveSupport had them to … Continue reading

Posted in Code, Javascript | Comments Off

JQuery and human readable email addresses

I’ve just started playing with the power that is Jquery and came up with this nice use for the Ajax functionality in Jquery. You want to put your email address on your web site so people can contact you, but … Continue reading

Posted in Code, Javascript | Comments Off

JQuery and human readable email addresses

Ive just started playing with the power that is Jquery and came up with this nice use for the Ajax functionality in Jquery. You want to put your email address on your web site so people can contact you, but … Continue reading
Posted in Javascript | Tagged | Comments Off

Javascript Namespaces

One of the big problems as the number of toolkits that you can use in your RIA increases is variable collision.  Constructing your classes and widgets in the form of a namespace reduces the risk that the global variables you are using … Continue reading
Posted in Javascript | Tagged | Comments Off

Creating a JavaScript Singleton object

If we want to create a singleton object, i.e. there can only every be one instance of it that is referenced by a global variable, in JavaScript it is very easy.  We simply declare the class function inline, returning a … Continue reading
Posted in Javascript | Tagged | Comments Off