odoo submit form using js and display data
success: function(data){ console.log(typeof data); console.log('Success! ' + data); var doc = new DOMParser().parseFromString(data, "text/html"); var tmp_element = doc.getElementById('form'); console.log('Element ' + tmp_element); if (tmp_element == null){ document.getElementById('form_error').innerHTML = "The page needs to be reloaded!"; }else{ form.submit(); } },var image_input = null;var file = document.getElementById('photo').files[0];if (file) { var reader = new FileReader(); reader.readAsDataURL(file); reader.onload = function(e) { image_input = e.target.result; }var result = {'article': image_input}$.ajax({ url: "/page/admission_details", method: "POST", dataType: "json", data: result,
Also in JavaScript:
- expo react native
- string charAt array js
- how to get a channelid discord.js
- react js documentation
- replacing characters in string javascript
- datatable dropdown toggle not working
- nodejs map
- transpose of the matrix in javascript
- includes()
- node send file
- javascript location redirect
- get uislider
- fetch is not defined amazon-cognito-identity-js
- angular interview questions
- react google maps get map center
- angular guard redirect
- d3js circle out of scrren
- get platform node
- clear terminal node js
- js console log input value
- access session data from ejs view
- jest object containing
- Warning: Failed child context type: Invalid child context `virtualizedCell.cellKey` of type
- ejs / javascript check if array/object exists and is not empty