On Nov 2, 7:49 pm, DaveGivesPHPaShot <[email protected]> wrote:
> Hello,
> Here is my page.http://www.thebigmap.com/test/search_by_tagnov02e.html
> The error occurs if you enter something in the text box at top right
> and try to call the script.
>
> Here is the error I'm getting
> Uncaught Error: Invalid value for property <map>: [object
> HTMLDivElement]
>
> Any ideas ?

The mysql_map variable is local to your "generic_load" function, so is
not available (is undefined) in the global context in which the html
click handlers run:

function generic_load() {
      var mysql_map = new google.maps.Map(

To make it global:
var mysql_map = null;
function generic_load() {
      mysql_map = new google.maps.Map(

  -- Larry

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

Reply via email to