skip to Main Content

submit 2 form data in single submit using jquery ajax

i want to submit 2 from data in single submit button. <form id="form1"> <input type="text" name="name"> <input type="submit" value="Submit"> </form> <form id="form2"> <input type="email" name="email"> <input type="submit" value="Submit"> </form> What i use for signle form: $.ajax({ url: '/submit_form_data.php', type: 'POST',…

VIEW QUESTION

Javascript – Pass bytes array from AJAX to Java

I'm trying to send a byte array to the server through AJAX: $.ajax({ url: armd.scieldan.server + "/detachedSignFile/", timeout: 120000, type: "POST", data: byteArray, responseType: 'arraybuffer', success: function(response) { console.log("Sign: " + response); }, error: function() { console.log("error"); } }); And…

VIEW QUESTION

AJAX – insert data in mysql

The code below displays a message after typing a value into the field Poprawnie zapisano: - but without this value Also does not write anything to the database. Did I make a mistake somewhere? HTML file <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>…

VIEW QUESTION

WordPress – TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation – Insert blob into database

I have this javascript code which is supposed to create a screenshot of the image-container div and send it to a new php script: html2canvas(image-container).then(function (canvas) { canvas.toBlob(function (blob) { jQuery.ajax({ url:"//domain.com/wp-admin/admin-ajax.php", type: "POST", data: {action: "addblobtodb", image: blob}, success:…

VIEW QUESTION
Back To Top
Search