Email conversation
From | David Maley |
To | Me |
Subject | I had to alter a line in RecoverInputs to make it work in Navigator 8 |
Date | 4 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
From | Me |
To | David Maley |
Subject | Re: I had to alter a line in RecoverInputs to make it work in Navigator 8 |
Date | 4 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/
From | David Maley |
To | Me |
Subject | Re: I had to alter a line in RecoverInputs to make it work in Navigator 8 |
Date | 7 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.