|
|
@ -172,10 +172,14 @@
|
|
|
|
(text (chain document (get-element-by-id "keyfield") value)))
|
|
|
|
(text (chain document (get-element-by-id "keyfield") value)))
|
|
|
|
(setf (getprop xhttp 'onreadystatechange)
|
|
|
|
(setf (getprop xhttp 'onreadystatechange)
|
|
|
|
(lambda ()
|
|
|
|
(lambda ()
|
|
|
|
(and (= (getprop this 'ready-state) 4)
|
|
|
|
(if (and (= (getprop this 'ready-state) 4)
|
|
|
|
(= (getprop this 'status) 200)
|
|
|
|
(= (getprop this 'status) 200))
|
|
|
|
(funcall (getprop console 'log) (getprop xhttp 'response-text)))
|
|
|
|
(progn
|
|
|
|
t)
|
|
|
|
(funcall (getprop console 'log) (getprop xhttp 'response-text))
|
|
|
|
|
|
|
|
(setf (chain document (get-element-by-id "buckets")
|
|
|
|
|
|
|
|
inner-h-t-m-l)
|
|
|
|
|
|
|
|
(getprop xhttp 'response-text))
|
|
|
|
|
|
|
|
t)))
|
|
|
|
(getprop xhttp 'response-type) "text/plain")
|
|
|
|
(getprop xhttp 'response-type) "text/plain")
|
|
|
|
(setf text (funcall (getprop text 'replace) (regex "/\\n/g") ","))
|
|
|
|
(setf text (funcall (getprop text 'replace) (regex "/\\n/g") ","))
|
|
|
|
(funcall (getprop xhttp 'open) "POST" "/buckets/" t)
|
|
|
|
(funcall (getprop xhttp 'open) "POST" "/buckets/" t)
|
|
|
@ -184,8 +188,8 @@
|
|
|
|
(:body
|
|
|
|
(:body
|
|
|
|
(:form (:textarea :attrs (list :type "text" :id "keyfield"))
|
|
|
|
(:form (:textarea :attrs (list :type "text" :id "keyfield"))
|
|
|
|
(:input :attrs (list :type "button" :value "send" :onclick "send()")))
|
|
|
|
(:input :attrs (list :type "button" :value "send" :onclick "send()")))
|
|
|
|
(:ol (dolist (i dirs)
|
|
|
|
(:ol :attrs (list :id "buckets") (dolist (i dirs)
|
|
|
|
(:li (:a :attrs (list :href i) i))))))))))
|
|
|
|
(:li (:a :attrs (list :href i) i))))))))))
|
|
|
|
|
|
|
|
|
|
|
|
(defun send-bucket-cookie (env)
|
|
|
|
(defun send-bucket-cookie (env)
|
|
|
|
(let* ((session (or (get-session env) (make-session)))
|
|
|
|
(let* ((session (or (get-session env) (make-session)))
|
|
|
|