Archive for May, 2007
A lively XTech is over. After some wandering and (too) much train I�m again in (too) sunny Italy. Circumstances of the presentation were a little adventurous�wi-fi wasn�t officially available, and what do you do when you want to demonstrate an instant messaging application and there�s no network to talk to a remote partner? Easy: you program an assistant robot and run it on localhost. (Easy? Um, ok.)[ READ MORE ]
Before: var xulScriptlet; var blueprint = document.getElementById('blueprints').firstChild; while(blueprint) { if(blueprint.getAttribute('class') == 'scriptlet') break; blueprint = blueprint.nextSibling; } var xulScriptlet = blueprint.cloneNode(true); xulScriptlet.getElementsByAttribute('class', 'name')[0].value = scriptlet.info.name; xulScriptlet.getElementsByAttribute('class', 'version')[0].value = scriptlet.info.version; document.getElementById('scriptlets').appendChild(xulScriptlet); After...
var xulScriptlet; var blueprint = document.getElementById('blueprints').firstChild; while(blueprint) { if(blueprint.getAttribute('class') == 'scriptlet') break; blueprint = blueprint.nextSibling; } var xulScriptlet = blueprint.cloneNode(true); xulScriptlet.getElementsByAttribute('class', 'name')[0].value = scriptlet.info.name; xulScriptlet.getElementsByAttribute('class', 'version')[0].value = scriptlet.info.version; document.getElementById('scriptlets').appendChild(xulScriptlet);