RCC Graphic Designs | Blog

Burlington Web Design

May 30, 2009 at 5:17pm
Home

To all who asked about the “obj has no properties” or “obj needed” javascript error that comes up. The reason why is that the scripts looks for both a element with the class ’submit_btn’ and ‘reset_btn’, so if your page doesn’t have both a Submit and Reset button on it, you will get the object missing error. You need to add two conditionals so that the btn.addEvent is only executed when the respective element is available.

— Scalable CSS Buttons Using PNG and Background Colors | David’s kitchen (via Justin G.’s comment)

Notes