[parenscript-devel] XMLHttpRequest
Hi. How to make a XMLHttpRequest object to contact the Hunchentoot server ? Thanks
I made a code like this: (defun func () (let ((xhr (new ((@ window -x-m-l-http-request))))) (chain xhr (open "GET" "/something.xml")) (chain xhr (send null)) (setf (@ xhr onreadystatechange) (alert "abc")))) Then I made :onclick event to call a function "func" and when I click I get the messagge box "abc". How to get some lisp function return value in the messagge box ?
(alert (my-lisp-function)) On Fri, Apr 15, 2011 at 1:17 PM, Haris <fbogdanovic@xnet.hr> wrote:
I made a code like this:
(defun func () (let ((xhr (new ((@ window -x-m-l-http-request))))) (chain xhr (open "GET" "/something.xml")) (chain xhr (send null)) (setf (@ xhr onreadystatechange) (alert "abc"))))
Then I made :onclick event to call a function "func" and when I click I get the messagge box "abc". How to get some lisp function return value in the messagge box ?
_______________________________________________ parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
participants (2)
-
Haris
-
Vladimir Sedach