I have the same problem and found this topic.
I have an div with id = map but I did declare it.

Here's the code I'm using:

                function load() {
                                if (GBrowserIsCompatible()) {
                                                geocoder = new 
GClientGeocoder();
                                                map = new 
GMap2(document.getElementById('map'));
                                                map.addControl(new 
GSmallMapControl());
                                                map.addControl(new 
GMapTypeControl());
                                                map.setCenter(new 
GLatLng(52.132633,5.291266), 7);
                                }

                                var zoeken_naar = "<%=request.Form("winkel")%>"
                                geocoder.getLatLng(zoeken_naar, 
function(latlng) {
                                        if (!latlng) {
                                                window.location = 
"cigo-winkels.asp?adres=fout";
                                        } else {
                                                var lat = "" + latlng.lat() + 
"";
                                                var lng = "" + latlng.lng() + 
"";

                                                window.location = 
"cigo-winkels.asp?lat=" + lat.replace(".","_")
+ "&lng=" + lng.replace(".","_") + "";
                                        }
                                }
                                );
                }

Above that I include the follow:

<script type="text/javascript" src="http://maps.google.com/maps?
file=api&v=2&key=_my-api-code_"></script>

Any tips or crystal clear solutions are more than welcome ;-)

Thanks in advance,

Sven

On 30 dec 2010, 03:07, "[email protected]" <[email protected]>
wrote:
> On Dec 29, 8:56 pm, "[email protected]" <[email protected]>
> wrote:
>
>
>
>
>
> > On Dec 29, 7:44 pm, Markster <[email protected]> wrote:
>
> > > Javascript error when using IE8 (works fine in Chrome, FF3.6, IE6,
> > > IE9, Safari)
>
> > > No map markers appear on the map and the js error says:
>
> > > Invalid argument.
> > > main.js
> > > line: 25
> > > char:787
> > > Code: 0
> > > URI:http://maps.gstatic.com/intl/en_us/mapfiles/api-3/3/5/main.js
>
> > > I've seen many threads with IE8 and even pertaining to main.js, but
> > > have not found anything exactly like this or with a resolution that
> > > fixes this.
>
> > We can't tell what is wrong by the information you have posted.
> > Please read and follow the posting guidelines and provide a link to
> > your map that exhibits the 
> > problem:http://groups.google.com/group/google-maps-js-api-v3/browse_frm/threa...
>
> Wild guess.  You have a div with id="map" and you haven't declared
> your map variable with the var keyword...
>
>    -- Larry
>
>
>
>
>
> > > thanks in advance,
>
> > > -Mark

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