Monthly Archives: September 2004

Tomcat Administrator Conflict

I recently was working on a J2EE application on Tomcat that contained a sub-folder named “admin”. During most of the development process the application was not being run from the “/” root context. When the application was moved to the … Continue reading

Posted in General | Comments Off on Tomcat Administrator Conflict

Validating all fields on a form

The following Javascript can be used to verify that a value has been entered in all fields on a form. function validate(form) { var regex = /\w+/; for(var i = 0; i < form.length; i++) { var curr_el = form.elements[i]; … Continue reading

Posted in JavaScript | Comments Off on Validating all fields on a form

Checking for empty form fields

When using JavaScript to validate form input one might be tempted to use: if(document.form.field.value == ”) { alert(“Hey, enter a value”); return false; } – or – if(document.form.field.value.length == 0) { alert(“Hey you, yes you the guy who pressed enter … Continue reading

Posted in General | Comments Off on Checking for empty form fields

Up and running with WordPress

Well, I’m up and running with WordPress. Credit to my friend and co-worker Yuval for getting me to start this blog. I was going to start hacking away with my rusty Perl skills and put together my own blogging application, … Continue reading

Posted in General | Comments Off on Up and running with WordPress