How to make AJAX work on local server using XAMPP or node.js
is XAMPP working? can you access it via http://localhost
?
AJAX is just javascript that can send requests without reloading the entire page. it doesn't need anything special to work.
however its important that localhost is working and keep note if you need to add a port to the end of the url to get it to work.
then add your html/php file into the htdocs folder of XAMPP and navigate to it using the localhost url.
Les Paul
Updated on September 04, 2020Comments
-
Les Paul over 3 years
I am at my wit's end and I'm hoping someone can help.
I have been trying to get AJAX to work on a local server, but I don't know where to begin even with the most basic code. I have downloaded node.js and XAMPP and I have been looking online for tutorials on how to get even AJAX test sites to work.
If anybody knows of a step-by-step tutorial on how to get the most basic AJAX functions to work on node.js or XAMPP I would appreciate it so much. Everything I've found seems to assume the person reading already knows how to begin working with a local server to make the code work. I know what code I need to write from all the examples, I just don't know how to get it to work on XAMPP or node.js! Thank you.