Retrieving Variable Values with AJAX
I want to create a feature on a specific section of my custom template’s category page that allows users to sort the displayed cards in any order they prefer.
PHP receives no parameter via AJAX
I try to hand over a parameter, a String, that is determined by user input via Ajax to a PHP Programm, but the php does not receive the parameter I try to handover. Then Ajax should return a JSON
Javascript code after jquery.post request is executing before the response arrives
I’m trying to update an HTML element in my page based on what I get from a PHP function I’m calling through $.post. But when I execute the code for the first time, the response value is undefined. From then on, it returns the past response value.
Cannot import php class into code blocks locating in php file which already use this class via ajax
I have a main content page (pages/maincontent.php
) that uses a class (scripts/Database.php
) to connect to a DB. Everything is working fine.
But also, I want to update the information by clicking on a button (pages/parts/roomline.php
, js/scripts.js
) using the file (pages/parts/updateInformation.php
) which will represent this information and display it on the main page. But I get an error importing a database file and I have no idea why it occurs.
Cannot import php class into code blocks locating in php file which already use this class via ajax
I have a main content page (pages/maincontent.php
) that uses a class (scripts/Database.php
) to connect to a DB. Everything is working fine.
But also, I want to update the information by clicking on a button (pages/parts/roomline.php
, js/scripts.js
) using the file (pages/parts/updateInformation.php
) which will represent this information and display it on the main page. But I get an error importing a database file and I have no idea why it occurs.