JSFiddle - React, Tailwind, and code Playground
by mshufrich
HTML
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<iframe name="test"></iframe>
<form id="addFolder" action="" method="POST" target="test">
<input type="hidden" name="destFolderUri" value="/"/>
<input type="hidden" name="folder" value='{"URI":"","label":"New Folder6","desc":""}'/>
<input type="submit" value="OK"/>
</form>
CSS
iframe {
width: 600px;
height: 450px;
}
JavaScript
var url = "http://localhost:8082/jasperserver-pro-bugfix/flow.html";
function makeRequest(value) {
var form = window.document.forms[0];
form.action = url + "?_flowExecutionKey=e" + value + "s1&_eventId=createFolder";
console.log("requesting:", form.action);
form.submit();
};
var i = 0;
while (i < 50) {
var func = (function(value){
return function() {
makeRequest(value);
};
})(i);
setTimeout(func, i * 1000);
i++;
}