On Jul 27, 8:44 pm, mnikolic25 <[email protected]> wrote: > Hello all! > > I have a database of cities, states, and zip codes and want to add a > map to my website so when someone is on a city specific page, it > displays a map of that zip code and camera stores near by. > > I have a simple snippet setup in MODx that is already tied to the > database, so all I need is the JS that includes it. > Here are the attributes I have setup: > > statename: [+statename+] > abbreviation: [+abbreviation+] > city: [+city+] > zip: [+zip+] > > The way it's setup it lets me call these attributes anywhere in the > template so I was wondering if I can call them out in the JS and > dynamically create a map based on them?
I don't know anything about MODx, but if it is server side, you are going to have trouble "calling it from javascript" (which is running in the client). You might want to investigate AJAX and look at the mySQL/PHP tutorials for ideas. > I also want to include the > keyword camera store so only camera stores in a specific city pop up. If this query is to your database, that should be possible. If not, you will need to investigate the local search API. -- Larry > > Hope that makes sense. > > Thank you! > Marko --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
