MacBook, defective by design banner

title:
Put the knife down and take a green herb, dude.

descrip:
One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com

Self-Pimpin':
Member of an email list?
You need The Digest Handler!!


FOR ENTERTAINMENT PURPOSES ONLY!!! Back-up your data and always wear white.
URLs I want to remember:
* Atari 2600 programming on your Mac
* joel on software (tip pt)
* resume, mostly for Google * Regular Expression Introduction (copy)
* gpl xbrowser API for dhtml
* mulder (old css tutorial)
* Using CommonDialog in VB 6 * Free zip utils
* that hardware vendor review site I forget about is here * Javascript 1.5 ref
* Read the bits about the zone * w3c.org index of HTML 4.01 elements
* Giant ASCII Textifier * Quick intro to Javascript
* Editable Firefox Page * Parsing str's in VB6
email if ya gotta, RSS if ya wanna RSS
 
 
Wednesday, January 18, 2012

Latest project uses ExtJS for nearly all of its UI. Still a pretty exhaustive toolkit and still seems fairly robust, but I've got to admit that I'm a little wary of abstraction layers. I often create docs in html rather than .doc(x) or what-have-you because I know I can, heck or high water, make html look like I want it to eventually. jQuery initially had me scared, but the ability to reach in with Javascript easily if something borked (and the ease with which you could go javascript parallel to jQuery) won me over, even on a .NET project.

With ExtJS, not so sure. I'm getting the feeling that stuff I do in javascript to get things done might get overwritten by ExtJS with more abandon.

Anyhow, changing a tree node's icon, though not easy or well-documented, was eventually pretty easy once I Firebugged it (another thing I didn't really need with jQuery, though I was a Chrome tools window junkie for a while).

Some decent help here and here (from StackOverflow on both counts).

   1 // (works, so touching the right OM)
2 Ext.select('.x-tree-icon').each(function(el){
3 console.log(el.getWidth());
4 });
5
6
7 //Changles icon. QED
8 Ext.select('.x-tree-icon-leaf').each(function(el){
9 el.setStyle('background-image','url("http://en.wikipedia.org/favicon.ico")'));
10 });
11
12
13 // shorthand also works, but seems to be undocumented:
14 // http://docs.sencha.com/ext-js/3-4/#!/api/Ext.CompositeElement
15 // I don't see it inheriting from something that'd add that.
16 Ext.select('.x-tree-icon-leaf')
17 .setStyle('background-image','url("http://www.apple.com/favicon.ico")');

Labels: , ,


posted by ruffin at 1/18/2012 08:58:00 AM
0 comments

Support freedom
All posts can be accessed here:


Just the last year o' posts:



Powered by Blogger furthurnet.org