On 4 May 2011 13:16, Keith Brown <[email protected]> wrote: > my map is giving a weird error I don't understand. Firebug is saying: > identifier starts immediately after numeric literal > optionAUpdate(tU34697, 85A5CC, 0)
I get a different error, but I think you're missing some quotes. tU34697 should be a string, shouldn't it? Or have you defined that as a variable somewhere? Similarly with the colour specification. There's a slight issue with if( optionB == '1' ) because that tests a string '1' and not a number 1. As it happens, Javascript treats 1 and '1' as the same, but it's generally best to get it explicitly right -- it certainly stops bad habits creeping into coding where it *does* matter. -- 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 to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
