> var popup = if(type=="A"){"hello A"} else {"hello!"};

Learn to use whichever browsers's error reporting.
I get a straightforward syntax error on that line.
Hint {"somestring"} is not valid javascript, you have to tell
javascript what you want it to do with the string.

http://www.w3schools.com/JS/js_if_else.asp


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to