How to refresh a webpage without reloading the webpage using AJAX?

I am trying to update information that users have logged into mysql database using php without reloading the web page. How can I do this, an example or tutorials will be enjoyable.

If there is a tutorial on how to do this, can you share a link or links to tutorials with me.

+3
source share
4 answers

There's a nice Ajax tutorial here , and it uses PHP on the server side. Once you fully understand how Ajax works, by the way, you might want to move on to a Javascript structure that will simplify it, such as jquery , dojo or Google Closure .

+2
source

This question relates to the email address of the user, adding it to the database (or otherwise processing it using php) and updating the web page without reloading the page, ajax style:

Javascript / css / php / mysql to collect email user addresses in a div on a website

The answer to this question should be a good template for what you are looking for.

+1
source

Pull jQuery into your project and see its documentation on the get / publish method.

0
source

Source: https://habr.com/ru/post/1726153/


All Articles