Xernt helps you find up-to-date answers & allows to take a part in building human knowledge database.
This Post below ↓ is only visible to you. It is sheduled to delete with all the changelog & comment data attached. You can cancel deletion at any time.
HTTP ajax post jquery, ajax get jquery without reloading the page. Working example and everything explained.
Before you start you need to have included in your code: JQUERY library in your </HEAD> section of your document.
or just upload it on your server.
First you need to build your php content like it would work without ajax
it could be a php script or just a simple request.
go.php
// actions (like adding record to db)
echo 'THANKS!'.die;
?>
Then you put code inside .html script file
it could be index.html
You put LINK which you want to "launch action" (the script you've supplied in 2. point [in bold you need to edit])
<AndyPSV> if you want to use it more than 1 time on subpage, you need to change class name: function _getX
(ex. function _get1(....), _get2(....) etc. cheers – Andrzej Jeziorski2 months ago · Reply
(ex. function _get1(....), _get2(....) etc. cheers – Andrzej Jeziorski 2 months ago · Reply