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,022
Thanks: 7
Thanked 59 Times in 54 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
2 hours 3 min ago
3 hours 3 min ago
6 hours 50 min ago
8 hours 4 min ago
11 hours 40 min ago
18 hours 55 min ago
1 day 3 hours ago
1 day 5 hours ago
1 day 20 hours ago
1 day 22 hours ago