Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1997  / 3 Years ago, sat, july 17, 2021, 4:00:58

This is probably a very basic problem, but I am still at a basic skill level. I have started practicing with Javascript and Ajax recently. I use Ubuntu on a Virtual Box virtual computer. I have a LAMP installed on Ubuntu. I use Firefox. I have been following the Ajax For Dummies frameworks and examples. I have done some simple Javascript text-display scripts and they work fine. However, when I tried an Ajax script (attempting to get data from a text file on the local host) it does not work. The text does not appear in the browser with either "onclick" or "onload". I downloaded and tested the example Ajax for Dummies script (ch03/index.html) and that also did not work. Any answers or advice would be more appreciated than you will probably ever know.
Cheers guys,
Andrew


More From » firefox

 Answers
5

Be sure to place all data you are trying to access somewhere within /var/www on your server's filesystem, as /var/www is the default root directory for the webserver.


[#39368] Saturday, July 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inciplyies

Total Points: 10
Total Questions: 114
Total Answers: 93

Location: French Polynesia
Member since Sun, Dec 20, 2020
3 Years ago
;