skip to Main Content

how can I make an Ajax call instead of post printing the waybill from WordPress on my php website?

<form id="print-shipping-label-form"> <input type="hidden" name="shipping_id" value="<?php echo $result_wpid_shipping['ID']; ?>"> <input type="hidden" name="api_key" value="ce312203c06e8bda7157c408fbac54c4"> <button type="submit" class="btn btn-danger">Drukuj list przewozowy</button> </form> <script> document.addEventListener('DOMContentLoaded', function() { var printShippingLabelForm = document.getElementById('print-shipping-label-form'); if (printShippingLabelForm) { printShippingLabelForm.addEventListener('submit', function(event) { event.preventDefault(); // Zatrzymaj domyślne zachowanie formularza…

VIEW QUESTION

Html – @PutMapping doesn't work in my SpringBoot project

I've tried to implement TodoList editing into my GetTodoController and it doesn't work. <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Create Todo</title> <link rel="stylesheet" th:href="@{/styles/todo/operation.css}"> </head> <body> <h2>Edit your Todo!</h2> <form th:method="PUT" th:action="@{/todo/edit/{id}(id=${list.id})}" th:object="${list}"> <label for="name">Name: </label> <input type="text"…

VIEW QUESTION
Back To Top
Search