You have two separate map variables. One global in the first script
var map = null;
And the second - as far as I see also in global scope - in the second
script
var map = new GMap2(document.getElementById("map"));
Is there a special reason why you're breaking the scripts apart?
You should also try to define a doctype for the whole document.
On Oct 22, 12:46 pm, Jaap V <[EMAIL PROTECTED]> wrote:
> But just putting a </form> at the end doesn't work
> (http://www.punja.nl/vliegoverzicht/index-help2.html).
>
> <form action="#" onsubmit="showAddress(this.address.value); return
> false">
> <input type="text" size="60" name="address" value="Typ plaatsnaam
> xxx" />
> <input type="submit" value="Go!" /></form>
>
> Furthermore, when I use the exact code of the example, i.e. div id=map
> between <form> and </form>, I also get a lot of errors (both IE and
> FF) (http://www.punja.nl/vliegoverzicht/index-help3.html).
>
> <form action="#" onsubmit="showAddress(this.address.value); return
> false">
> <input type="text" size="60" name="address" value="Typ plaatsnaam
> xxx" />
> <input type="submit" value="Go!" />
> <div id="map" style="width: 100%; height: 90%;"></div>
> </form>
>
> On 22 okt, 12:21, Mike Williams <[EMAIL PROTECTED]> wrote:
>
> > Wasn't it Jaap V who wrote:
>
> > >Strange, again I get an error in IE and not in FF. This time the links
> > >on the right site doesn't appear (only 1, and not both) And I put the
> > ><script> out of the table ;-).
>
> > It's still inside the <form>, because the form is considered to go all
> > the way to the end if there's no </form>
>
> > --http://econym.org.uk/gmap
> > The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---