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).

1  
!7
2  
3  
html {
4  
  ret hhtml(hhead(hmobilefix()) + hbody(
5  
[[
6  
<div id="demo">
7  
<h1>The XMLHttpRequest Object</h1>
8  
<button type="button" onclick="loadDoc()">Change Content</button>
9  
</div>
10  
11  
<script>
12  
function loadDoc() {
13  
  var xhttp = new XMLHttpRequest();
14  
  xhttp.onreadystatechange = function() {
15  
    if (this.readyState == 4 && this.status == 200) {
16  
      document.getElementById("demo").innerHTML =
17  
      this.responseText;
18  
    }
19  
  };
20  
  xhttp.open("GET", "http://ai1.lol/ftcyvgtbxprwwvgl", true);
21  
  xhttp.send();
22  
}
23  
</script>
24  
]]));
25  
}

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: 479 / 514
Version history: 1 change(s)
Referenced in: [show references]