I have a javascript file that has the variable named locations, with some data in quotes for example, 'name', '123 lane', and etc. I want the variable to get data from a database and not the plain text. How do I insert the code to do this into my JavaScript variable? I'm new to this, Thanks!!
Take the 2-minute tour
×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.
closed as off-topic by closetnoc, dan♦ Apr 8 at 4:00
|
|||||||||
|
It seams like the best way to go about it, is to have a php file which returns the output of your data set; and just make a ajax call to it. Maybe these resources will help: |
|||
|