Arquivo de 15 de Setembro de 2007

Common Lisp e AJAX

Sábado, 15 de Setembro de 2007 - Lucindo

E 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
[…]

(blog ‘lucindo) | http://blog.lucindo.com.br