Cheers for the advice guys --- will have another crack at it.

Thanks again

On Jul 16, 4:35 pm, Andrew Leach <[email protected]>
wrote:
> On Jul 16, 4:15 pm, dotbin <[email protected]> wrote:
>
> > Hi,
>
> > I'm having trouble posting multiple maps on 1 page. Please look at the
> > following page as an example.
>
> >http://www.getagig.info/new/search.php---in the search box type
> > "Manchester" (without quotes) so the maps will generate.
>
> > As you will see a map only appears in the first pull down box, not all
> > of them, as it should.
>
> > I'm pretty useless when it comes to JS, knowing only PHP,
>
> OK... what happens in PHP if you have more than one function with the
> same name?
>
> You can't have more than one HTML element with the same ID attribute,
> so including lots of divs all called "map" will introduce problems.
> Which one is going to get which map in it?
>
> I suggest: start with an HTML page with one gig and its map. Hardcode
> everything; make sure it works. Add another gig and see what functions
> you can reuse. Note that the second map div will have to have a
> different name, and it will need referencing with a different variable
> in the Javascript. If necessary, rewrite the functions so they become
> generic and you can re-use the code with two different maps. Once you
> have an extensible solution, wrap your PHP around it to provide the
> dynamic data.
>
> 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