renamed ajax.nim to kajax.nim

This commit is contained in:
Andreas Rumpf 2017-04-24 17:46:37 +02:00
commit 23f00055a9
3 changed files with 19 additions and 0 deletions

13
experiments/ajaxtest.html Normal file
View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Karax AJAX Test</title>
</head>
<body id="body">
<div id="ROOT" />
<script type="text/javascript" src="nimcache/ajaxtest.js"></script>
</html>

6
experiments/ajaxtest.nim Normal file
View file

@ -0,0 +1,6 @@
import dom, kajax
proc cb(httpStatus: int, response: cstring) =
echo "Worked!"
ajaxGet("https://httpbin.org/get", @[], cb)