Adrian wrote:
>
> Here's portion of my code:

A link would have been better.

> If I change the document.getElementById("e_name").value with some
> other string, it works fine.
>
> Any help or suggestion?

Apart from the apparently mismatched quotes, the problem is that you
are trying to get an element which doesn't exist. You are constructing
a string called "html" and it's only when that is *used* in making the
infoWindow that the element e_name will exist.

Without having seen the rest of your code, my first thought would be
to use just the name of the element in the function call and do the
document.getElementById within the called function itself. When the
function is run with the infoWindow open, that element wil be
available.

I've deleted the code snippet with your function name, but use
something like
onclick='SaveMyData(\"e_name\")'

I'd also recommend using single and double quotes as it makes the code
easier to read and reduces the likelihood of mistakes.

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