optimize CSS and JS on the fly

Posted: June 25th, 2009 | Author: tolleiv | Tags: | Comments Off

Today I got the hint from a colleague that there’s some app from RockstarApps which enables to optimize CSS and JS in Eclipse on the fly. I just did some work on my imagemap_wizard TYPO3 extension and it seems to work pretty well – therefore I highly recommed to checkout the Rockstar WebOptimizer if you’re developing Javascript applications.

It seems that it also supports CSS sprite generation – this might be a followup tomorrow ;)


my jQuery 1.3.2 update experience

Posted: June 11th, 2009 | Author: tolleiv | Tags: , | Comments Off

Over the last days I did some small steps to clean up the code of my TYPO3 imagemap extension. During that process I wanted to update jQuery from 1.2.6 to 1.3.2. Initially this went fine but after some testing I found this strange error:

[Exception... "'Syntax error, unrecognized expression: #' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"

Due to the *verbosity* of the message (location “<unknown>” ) it wasn’t obvious for me that what’s going wrong. But right after I found the jQuery-bugtracker log #4323 ($(‘#’ + myID) throws an exception in version 1.3.1 and 1.3.2 if myID is a zero length string) everything was clear. For some reason they’ve made the decission to add some strictness to their API so for the future always validate your selectors before you ask jQuery ;)