Gmap Error "Javascript is required to view this map" when embedding the node in another node In my drupal 6 site, I use finder embedded in a node, to search for another node.
When user select a result the node is loaded in the same page.
The final structure is


parent node

finder embedded
parent node description

resulting node




Everything works fine, except that the Map loaded in the resulting node is not displayed.
I get this error "Javascript is required to view this map".
Obviously I've checked what's wrong, and I've seen that the required JS are missing (gmap.js, marker.js, etc..).  

How can I force GMap to load js if they are missing?
Why do you think this is happening?

UPDATE

The problem is related to Ajax.
If I take the same scenario and hit Enter instead of Find, the request is made without using Ajax and the map is shown correctly.
Using the Find button (Ajax request) the problem persist.

Any solution?
GUnload is part of the Gmap API. Are you loading the Gmap js files served by Google?

The error would happen if the JS file from Google is:


Missing.
Has not been parsed when the code giving the error is executed.


To give a more thorough answer more details are needed.

Update  

The Gmap module is a bridge to the Gmap JS API that Google has created. The actual Gmap JS API is not included in the module itself but is served by google. It's included using the following line:

drupal_set_html_head('&lt;script src="'.
  check_url(url('http://maps.google.com/maps', array('query' =&gt; $query))).
  '" type="text/javascript"&gt;&lt;/script&gt;'
);


The error you are getting, it is caused by the lack of the above JS file, or because it's loaded after the gmap module JS code is run.