[Google Maps API v3] Re: force refresh of getTile function

2011-08-14 Thread Esa
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

[Google Maps API v3] Re: force refresh of getTile function

2011-08-14 Thread Esa
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

Re: [Google Maps API v3] Re: force refresh of getTile function

2011-08-14 Thread Michael Geary
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( '

[Google Maps API v3] Re: force refresh of getTile function

2011-08-14 Thread Kesuke
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

[Google Maps API v3] Re: force refresh of getTile function

2011-08-14 Thread Esa
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

[Google Maps API v3] Re: force refresh of getTile function

2011-08-14 Thread Esa
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

[Google Maps API v3] Re: force refresh of getTile function

2011-08-12 Thread Kesuke
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

[Google Maps API v3] Re: force refresh of getTile function

2011-08-11 Thread Kesuke
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