Right. It is good to emphasize that I was simplifying. I
specially meant this case when we are testing 'checked' property of a
checkbox.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email t
Right. It is a good good to emphasize that I was simplifying. I
specially meant this case where we are testing 'checked' property of a
checkbox.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, sen
On Sun, Aug 14, 2011 at 7:11 AM, Esa wrote:
> You don't have to add '==true' in if statement. JavaScript makes the
> test by default.
> if(x==true) can be written simply if(x)
Those are not quite the same thing. For example:
x = {};
if( x ) alert( 'x' ); // will alert
if( x == true ) alert( '
Hmmm, never the less that function is throwing off an error which is
stopping it progressing. I'm not sure what is causing it in that case.
On Aug 14, 3:11 pm, Esa wrote:
> Kesuke. None of the syntax issues you pointed are not against
> JavaScript rules.
>
> Curly brackets with if() ;else; are op
Kesuke. None of the syntax issues you pointed are not against
JavaScript rules.
Curly brackets with if() ;else; are optional.
Underscores are allowed characters in id strings.
You don't have to add '==true' in if statement. JavaScript makes the
test by default.
if(x==true) can be written simply
On Aug 12, 3:27 pm, Kesuke wrote:
> I was just taking another look at this and there is another problem
> with that setRedye function, the (document.dir.redye_check.checked)
> throws up an "Unable to get value of the property 'checked': object is
> null or undefined" error. I'm not sure why that
I was just taking another look at this and there is another problem
with that setRedye function, the (document.dir.redye_check.checked)
throws up an "Unable to get value of the property 'checked': object is
null or undefined" error. I'm not sure why that is, I would have
thought it should work but
Your function setRedye (){ has an error *I think*, could this be the
cause?
function setRedye(){
if (document.dir.redye_check.checked) redye=true;
else redye=false;
}
Should be;
function setRedye() {
if (document.dir.redye_check.checked) {
redye=true;
} else {
redye=false;
}
Out of my own c