I am trying to create a google maps application in php whereby a load of points appear on a map. The google maps api uses ajax and the coordinates can be entered using a seperate .js file or in the <head> section of the html page.
The coordinates are stored in my database (MySQL) and are dynamically extracted depending on what the user searches for.
However I don't want people to be able to look at the actual coordinates which they would be able to do if they were entered in the <head> section, I instead want them to be put in a seperate .js file.
My question is how do I dynamically get these coordinates from the database in a .js file?
Posts: 1,016
Thanks: 7
Thanked 56 Times in 51 Posts
well es both before posted, just output your data and that will result in a js code /file. but in both cases the user will be able to read the content of that js file.
IS there no other way to gather the data from google and pass the whole page, like a proxy app to the client?
Recent comments
1 day 42 min ago
1 day 5 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 2 hours ago
2 days 2 hours ago
2 days 7 hours ago
2 days 13 hours ago
2 days 14 hours ago
2 days 15 hours ago