changed add_var_to_front back to using add_inline instead as localize, because need to not overwrite the variables

This commit is contained in:
asus
2024-02-11 17:07:27 +01:00
parent de6fd7a8a7
commit 87a0f7fc0b
9 changed files with 58 additions and 21 deletions

View File

@@ -1,4 +1,10 @@
const title = document.querySelector(".first_el_to_change");
title.innerHTML = "--- coucou ;) " + php_data.myvar_1;
console.log(php_data);
title.innerHTML = "--- coucou ;) " + myvar_1;
const ajax_button_1 = document.querySelector("#test_ajax_1");
console.log("ajax_button_1: ");
console.log(ajax_button_1);
ajax_button_1.addEventListener('click', () => {
ajax_post(ajax_button_1, 'get_data');
});