now ajax is in PLGMTLS object as a method

This commit is contained in:
asus
2024-02-15 02:47:11 +01:00
parent aaca16525b
commit 6c893049dc
5 changed files with 76 additions and 59 deletions

View File

@@ -5,7 +5,8 @@ sendButton.addEventListener('click', () => {
const inputValue = inputElement.value;
console.log("inputValue:");
console.log(inputValue);
PLGNTLS_ajax(inputValue, 'get_data')
console.log(PLGNTLS_data);
PLGNTLS_data.ajax(inputValue, 'get_data')
.then((response) => response.json())
.then((data) => {
console.log("dataaa: ");