Monthly Archives: November 2005

Using Dom4J: Reading An XML File

For almost every project I have worked on I have had to work with XML files. I’ve used SAX and DOM parsers and have even written my own XML writers. But now for most of my XML needs I use Dom4J. Dom4J will get you started quickly. These four little lines will read in an [...]

Posted in HTML/XML, Java, TechKnow | 1 Comment

Style And Class

With JavaScript you can access and update an element’s style and even its class. Say that you have two CSS classes: .warning {color: yellow;} .error {color: green;} You can update or switch an element’s CSS class with the following JavaScript code: var element = document.getElementById(‘element’); element.className = ‘warning’; But you can access individual CSS attributes [...]

Posted in CSS, JavaScript, TechKnow | Leave a comment

JavaScript FX

A lot of peeps are talking about Ajax this and Ajax that. Since JavaScript is the J in Ajax, what a lot of people have set out to do is create JavaScript effects libraries. There are several libraries available such as dojo toolkit, prototype framework, script.aculo.us, and others. I wanted to us some effects on [...]

Posted in CSS, JavaScript, TechKnow | 1 Comment

Word Mail Merge

“Learn something new every day.” That is my personal motto and I really feel that everyday I learn something new. Well, the other day I learned about MS Word’s Mail Merge capabilities. Word’s Mail Merge feature allows you to define a Word document template to be used for every row in a data source file. [...]

Posted in DotNET, TechKnow, Visual Basic | 1 Comment