Hello all,

I'm having trouble passing a Javascript variable (consisting of HTML
code) to GEvent.addListener. I build the variable outside of the
GEvent.addListener method and when I place a stop in Firebug, the
variable appears correct (text HTML). If I copy and paste the variable
value directly from Firebug to the method I'm using inside
GEvent.addListener (GMarker.openInfoWindowHtml), everything works
perfectly. I simply can't seem to use the variable that I've created
in the GMarker.openInfoWindowHtml method (again, inside
GEvent.addListener). How is it that the variable appears correct in
Firebug, can be copied and pasted into the method that I'm using
inside the even listener, and it simply will not show the HTML in the
Info Window (this is of course my ultimate goal). Am I missing
something with variable scope or perhaps special Javascript text
variable characters?

One final point is that I know a variable can be accessed inside
GEvent.addListener without "passing" it, as I have the callback
function using a variable that was created outside the listener. Any
ideas?

code is here:
http://gif.berkeley.edu/webGIS/GoogleMaps/fire/test2.html

Thanks a bunch,

Jeremy

--~--~---------~--~----~------------~-------~--~----~
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