What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-16 03:41:18
dataform js
var form = document.forms.namedItem("fileinfo"); form.addEventListener('submit', function(ev) { var oOutput = document.querySelector("div"), oData = new FormData(form); oData.append("CustomField", "Donn&eacut... Add solution -
Javascript 2021-11-15 09:00:16
sp_oamethod post json
Declare @Object as Int; Declare @ResponseText as Varchar(8000); Declare @Body as varchar(8000) = '{ "Subsystem": 1, "Exception": "", "Message": "I have done what you asked", "Time&quo... Add solution -
Javascript 2021-11-10 03:43:09
pure javascript post request
var xhr = new XMLHttpRequest(); // we defined the xhr xhr.onreadystatechange = function () { if (this.readyState != 4) return; if (this.status == 200) { var data = JSON.parse(this.responseText); // we get the returned data }... Add solution -
Javascript 2021-11-08 11:53:16
get authorization header javascript in my page
<!DOCTYPE html> <html> <head> </head> <body> <button onclick="tryit();">PDF</button> <script> function tryit() { var win = window.open('_blank'); downloadFile('/pdf', function(b... Add solution -
Javascript 2021-10-24 08:03:10
js check if image url exists
// create an XHR object const xhr = new XMLHttpRequest(); // listen for `onload` event xhr.onload = () => { if (xhr.status == 200) { console.log('Image exists.'); } else { console.log('Image does not exist.'); } }; // crea... Add solution