Tag Archives: JavaScript

Sprockets, ExtJS, and You: A tale of JavaScript bundling

I spent the past three days evaluating various JavaScript dependency resolution and packaging solutions, predominately on the client side. I didn’t find anything completely enamoring.
My objective is twofold. Maintain JavaScript sources using a file per class policy as a general rule. Serve the actual JavaScript portion of my application to the client [...]

Dynamic, lazy loading JavaScript packages

Many different solutions exist.

JSLoad is a Javascript file loader that [they] wrote for Instructables.

jspkg is a package loader for Javascript, based on pluggable loaders for locating and loading scripts into a client-side Javascript application. Orphaned?

The YUI Loader Utility is a client-side JavaScript component that allows you to load specific YUI components and their dependencies [...]

Rails, json_serializer, associations, and you

While the JSON support in Rails has improved, at least as of 2.1.0 the serializer doesn’t take into account model overrides of #to_json. Fortunately, a patch has been introduced, although it has been staled out.
Rails 2.3.3 and possibly earlier versions of Rails 2.3 no longer have this issue.
In the meantime, I have been defining [...]

ExtJS and Observable

With ExtJS, any class you create can have access to the ExtJS event model by simplying extending Ext.util.Observable. But then how do you actually use events?

High level overview of ExtJS events
Custom events in ExtJS
Observable Tutorial/Example
Singleton Observable
Subscribe to app level events demonstrates using Observable to listen to app level events
Another example of app level events.