Coverage report: /home/samppa/personal/opiskelu/ohtuprojekti/pulsu/trunk/javascript.lisp
Kind | Covered | All | % |
expression | 1 | 12 | 8.3 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
(eval-when (:compile-toplevel :load-toplevel :execute) (setf *attribute-quote-char* #\"))
6
(with-html-output (*http-stream*)
7
(:a :onclick (format nil "hidediv('~A');" id) :href "#" "X")))
9
(defhtml switch-input (attr-name)
10
(:td (:a :onclick (format nil "switch_input('~a');" attr-name)
11
(:img :class "switch_image" :src "static/switch_button.jpg" :alt "switch input")))
16
(defparameter *ajax-handler-url* "/ajax")
18
(defparameter *ajax-processor*
19
(make-ajax-processor :type :prototype
20
:server-uri *ajax-handler-url*
21
:js-file-uris "/static/prototype-1.6.0.3.js"
24
(defparameter *ajax-dispatcher*
25
(hunchentoot:create-prefix-dispatcher *ajax-handler-url*
26
(get-handler *ajax-processor*)))
28
(pushnew *ajax-dispatcher* *dispatch-table*)
33
(defun-ajax testfunc (number) (*ajax-processor* :method :get)
34
(format nil "~A" (+ 10 (parse-integer number))))
36
(defpage (testajax :uri "/testajax")
42
(str (generate-prologue *ajax-processor*))
43
(:span :id "moi" (str "___"))
44
(:input :type "button" :onclick (format nil "javascript:ajax_testfunc_set_element('moi',~A)" i) :value "push"))))