Common Lisp e AJAX
Sábado, 15 de Setembro de 2007 - LucindoE não é que funciona! Usei:
Hunchentoot
HT-AJAX
CL-WHO
(eval-when (:compile-toplevel :load-toplevel :execute)
(require :hunchentoot)
(require :cl-who)
(require :ht-ajax))
(defpackage :ajax-test
(:use :cl :hunchentoot :cl-who)
(:export #:start-web #:stop-web))
(in-package :ajax-test)
;; local directory with lokris.js
(defparameter */static-local-dir* “/Users/lucindo/Documents/Lisp/tmp/”)
;; can be any url
(defparameter *ajax-handler-url* “/ajax”)
;; using lokris (very small)
(defparameter *ajax-processor* (ht-ajax:make-ajax-processor
[…]