Loading...


Loading...

Welcome!

Sign up for a free account, or log in here.

Member Login

You can login by following the link.

Not a Member? Sign up! It's Free!

Please feel free to register.

Click to log in.

IE Anomaly with Checkboxes

I have been working on the tactile and braille ordering page at for the past few days (on and off at least, other ‘real’ work has interfered).

Today when I am finally getting around to fixing a few IE bugs (since I coded it for FireFox) I’m happy to say I’ve ironed most of them out. Except one, which has really started to bug me. Excuse the pun!

In a function (that works fine in FF) I check to see whether a checkbox is checked or not. At first I used this:

if (!braille.checked) {

Seems straightforward to me, but I knew that it is not strictly acceptable so I changed it to the more politically correct (which Microsoft also specifies on their CHECKED Attribute page):

if (braille.checked == false) {

When I click on the braille checkbox it alters the price, removes/adds the braille line and adds margin/padding to the elements above to center everything. Yeah, a bit of a perfectionist’s dream perhaps…

But IE, for some reason, just sits there doing nothing. When you click elsewhere on the page however, it does what it is supposed to do, removes/adds the braille etc., It was delayed and waiting for a mouse click! Why?

I even changed the code, wondering if it was IE specific (yes I know it’s overkill):

if (braille.getAttribute(‘checked’) == false || braille.checked == false) {

So here we are, all the major browsers like this ordering page, except IE. The code is solid, and it seems to work fine in IE -ONLY- when you click somewhere on the page afterwards. If anyone has come across something similar, I would appreciate any help with this. Thanks.



Leave a Reply



You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


The English Guy on Twitter

Raised Paper WordPress Theme

Raised Paper WordPress Theme screenshot
Theme Price

Onyx WordPress Theme

Onyx WordPress Theme screenshot
Theme Price

Victoriana WordPress Theme

Victoriana WordPress Theme screenshot
Theme Price

Expression Blue WordPress Theme

Expression Blue WordPress Theme screenshot
Theme Price

Premium WordPress Theme Release: Natural Green

Premium WordPress Theme Release: Natural Green screenshot
Theme Price

Theme Release: Ikon WordPress Theme

Theme Release: Ikon WordPress Theme screenshot
Theme Price

Shocking WordPress Theme Release

Shocking WordPress Theme Release screenshot
Theme Price

Digitalis WordPress Theme Release

Digitalis WordPress Theme Release screenshot
Theme Price

WordPress Theme: OpenAir Theme

WordPress Theme: OpenAir Theme screenshot
Theme Price

WordPress Theme: Very English

WordPress Theme: Very English screenshot
Theme Price

News Print v3.0 WordPress Theme Released

News Print v3.0 WordPress Theme Released screenshot
Theme Price

Reclamation WordPress Theme

Reclamation WordPress Theme screenshot
Theme Price