geeky · non php code

SpringMVC generic errors

I was looking around the net for this. Maybe I didn’t look hard enough but I wasn’t able to find it. Finally a coworker told me. If you use the SpringMVC framework and wish to show generic validation error messages at the top of the page, here’s how you do it: Obviously if you wish… Continue reading SpringMVC generic errors

geeky · non php code

log4j properties loading problem + put ivy jar on classpath in ant

I learned a few new tricks recently that I thought are pretty cool. If you use apache log4j, you can get very frustrated sometimes that it does not log based on what you defined in your log4j.properties file. This is because if your java web application contains other jars that also have log4j.properties, the log4j… Continue reading log4j properties loading problem + put ivy jar on classpath in ant

geeky · non php code

Custom font

I saw another custom font solution today: typeface Instead of creating images or using flash just to show your site’s graphic text in the font you want, you can use typeface.js and write in plain HTML and CSS, just as if your visitors had the font installed locally. A while ago, I blogged about the… Continue reading Custom font

geeky · non php code

jQuery may just win

I’m still unhappy how I lost the jQuery battle at work. Although I’m not banned from using it but hey this is encouraging! jQuery may just win the javascript framework battle at least in the popularity category. Other frameworks are just not as user friendly IMO.

geeky · non php code

Javascript Error: submit is not a function

Just my luck and I ran into the dreaded submit is not a function javascript error. Here’s the scenario. While coding javascript along, you get a form via id or name on your html page and calls the submit() function on it. You think it should just behave as expected (submits the form) instead nothing… Continue reading Javascript Error: submit is not a function

geeky · non php code

Why I prefer jQuery over YUI

While at work, I was trying to find a way to easily do server side pagination without writing all the lovely logic myself. Due to some constraints, I am unable to use more high end framework such as JSF and struts. Which in a way I believe is a good thing. I would have more… Continue reading Why I prefer jQuery over YUI

geeky · non php code · plug

Dodo's Text Counter

I needed a text counter at work. I searched around trying to find a jQuery plugin that fits the bill but I didn’t find anything. So I wrote one myself. Check it out 🙂 It should be pretty flexible. Requires jQuery Define the maximum of characters the user may input May be applied to one… Continue reading Dodo's Text Counter

geeky · non php code · plug

Dodo's Picklist

I needed a pick list script at work. I looked around and found a jQuery plugin but it didn’t do all I wanted so I modified it. I thought I’d share my final results with you. I will contact the original author to see if he wants to include my changes to his version as… Continue reading Dodo's Picklist

geeky · non php code · rants

IE input background image issue

IE strikes AGAIN! Just when I thought I was 100% done with the revamp of New Millennium, I noticed an UI issue in IE. I’m surprised I didn’t notice this before. It shouldn’t be anything new. I did some google research but didn’t find anyone mentioning it either. Applying background image to input tags should… Continue reading IE input background image issue

geeky · non php code · plug

jQuery and Tamper data rock

I’ve been working on a UI design at work and some of the build in components have border=”1″ on their generated table code. To achieve a consistent look, I always want border=”0″ on the table so I can control the table border with CSS. There is no way as far as I know you can… Continue reading jQuery and Tamper data rock