This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let srial = `folderID=${folderID}&folderName=${folderName}` | |
let xhr = new XMLHttpRequest() | |
xhr.open('POST','http://localhost:8080/api/folder/'+courseName,true) | |
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded") | |
xhr.send(srial) | |
------------------------------------------------------------------- | |
{/* | |
Means1 >> I didnt use e.preventDefault() ! | |
( | |
why? becuase see added folder WITHOUT refresh whole browser! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
2020-August-27 by juniorfrontend.ir | |
--> | |
<style media="screen"> | |
table{border: solid 1px; padding: 1em} | |
table td{padding: 1em;} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------------------------- | |
// Step 1 | |
// -------------------------------------------------------- | |
var data = [{ | |
country: "Iran", city: "Tehran", district: 22, size: 1200 | |
},{ | |
country: "Iran", city: "Tehran", district: 6, size: 1200 |