What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-24 19:55:02
how to send json in js with post
// Sending and receiving data in JSON format using POST method // var xhr = new XMLHttpRequest(); var url = "url"; xhr.open("POST", url, true); xhr.setRequestHeader("Content-Type", "application/json"); xhr.onreadyst... Add solution -
PHP 2022-02-13 15:55:08
Dorf SMS Plugin
<?php /* Plugin Name: Dorf SMS Plugin Plugin URI: http://akismet.com/?return=true Description: amaing sms plugin Version: 1.0.1 Author: akshay Author URI: http://www.yourkishore.com License: GPLv2 or later */ include_once('mySettings.php'); if( is_ad... Add solution -
Javascript 2022-02-05 00:15:05
javascript progress of xml http request
<!DOCTYPE html> <html> <body> <p id="demo">result</p> <button type="button" onclick="get_post_ajax();">Change Content</button> <script type="text/javascript"> functio... Add solution -
Other 2022-01-31 05:21:04
React CKEditor Custom build
/* You have to pass 3 steps: 1. copy the ckeditor5-custom build to root dir ├── ckeditor5 │ ├── build │ ├── sample │ ├── src │ ├── ... │ ├── package.json │ └── webpack.config.js ├── node_modules ├── public ├── src ├── ... └── pack... Add solution -
Javascript 2022-01-30 10:20:39
xhr post
var url = "https://example.com/"; var xhr = new XMLHttpRequest(); xhr.open("POST", url); xhr.setRequestHeader("Content-Type", "application/json"); xhr.onreadystatechange = function () { if (xhr.readyState === ... Add solution -
Javascript 2022-01-22 01:45:12
javascript stream youtube muisic in background
<script src="http://www.youtube.com/player_api"></script> <div id="player" style="position: absolute; top: -9999px; left: -9999px;"></div> <div id="info">loading...</div> <scr... 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