Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #1007646 // AJAX Test Bot [WORKS]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (603L/5K/16K).

!7

html {
  ret hhtml(hhead(hmobilefix()) + hbody(
[[
<div id="demo">
<h1>The XMLHttpRequest Object</h1>
<button type="button" onclick="loadDoc()">Change Content</button>
</div>

<script>
function loadDoc() {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
      document.getElementById("demo").innerHTML =
      this.responseText;
    }
  };
  xhttp.open("GET", "http://ai1.lol/ftcyvgtbxprwwvgl", true);
  xhttp.send();
}
</script>
]]));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007646
Snippet name: AJAX Test Bot [WORKS]
Eternal ID of this version: #1007646/2
Text MD5: a880950d15e02b17696efcd4309c930f
Transpilation MD5: 010f6c8c4d006416362878854a5bdba9
Author: stefan
Category: javax / html
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-30 14:06:30
Source code size: 549 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 473 / 506
Version history: 1 change(s)
Referenced in: [show references]