David Maley

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromDavid Maley
ToMe
SubjectI had to alter a line in RecoverInputs to make it work in Navigator 8
Date4 August 2006 09:46
I had to alter a line in RecoverInputs to make it work in Navigator 8

I had to change

oE.checked = oStr[y] ? true : false;

to

oE.checked = oStr[y] ? "checked" : "";

in order to successfully retrieve checkbox values. I'm using Navigator
8.

DM
FromMe
ToDavid Maley
SubjectRe: I had to alter a line in RecoverInputs to make it work in Navigator 8
Date4 August 2006 10:28
David,

> I had to change
> oE.checked = oStr[y] ? true : false;
> to
> oE.checked = oStr[y] ? "checked" : "";
> in order to successfully retrieve checkbox values. I'm using Navigator
> 8.

AKA Firefox. Since Netscape 8 is just Firefox with an ugly skin, and very
slow interface.

It will have to be a bug in the engine, since .checked is a boolean
property, not a string. According to the DOM specification:

"checked of type boolean"

This is also backed up by the DOM 0 documentation:

"Boolean property that reflects the current state of the checkbox."

I assume you are using the Firefox engine in Netscape 8, not the IE engine,
but in either case, the property has always been boolean, and cannot accept
string values. Does it only fail on a specific page or site? Perhaps one
that uses XHTML?


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
FromDavid Maley
ToMe
SubjectRe: I had to alter a line in RecoverInputs to make it work in Navigator 8
Date7 August 2006 12:31
thanks for replying (in spite of all the dire warnings that you
wouldn't). I haven't really investigated the full extent of the problem
with Netscape/Firefox; I'm happy with the workaround that I mentioned,
as IE accepts it happily too. I was really just letting you know in case
anyone else raises the same question but hadn't fixed it - felt it was
the least I could do since you are kind enough to make your code
publicly available.
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.