aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/backcall.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/outputs/backcall.lua')
-rw-r--r--spec/outputs/backcall.lua19
1 files changed, 11 insertions, 8 deletions
diff --git a/spec/outputs/backcall.lua b/spec/outputs/backcall.lua
index 9f7ec29..3a4c5e9 100644
--- a/spec/outputs/backcall.lua
+++ b/spec/outputs/backcall.lua
@@ -31,16 +31,19 @@ do
31 end)()) 31 end)())
32end 32end
33do 33do
34 if http ~= nil then 34 do
35 http.get("ajaxtest", function(data) 35 local _obj_0 = http
36 body[".result"]:html(data) 36 if _obj_0 ~= nil then
37 return http.post("ajaxprocess", data, function(processed) 37 _obj_0.get("ajaxtest", function(data)
38 body[".result"]:append(processed) 38 body[".result"]:html(data)
39 return setTimeout(1000, function() 39 return http.post("ajaxprocess", data, function(processed)
40 return print("done") 40 body[".result"]:append(processed)
41 return setTimeout(1000, function()
42 return print("done")
43 end)
41 end) 44 end)
42 end) 45 end)
43 end) 46 end
44 end 47 end
45end 48end
46do 49do