[hunchentoot-devel] ht-simple-ajax
Andy Peterson
andy.arvid at gmail.com
Sun Apr 3 11:05:42 UTC 2011
Did you start the Hunchentoot web server?
(defparameter *my-server*
(start (make-instance 'acceptor :address "localhost" :port 8000)))
I tested the example on http://martin-loetzsch.de/ht-simple-ajax/ and
it worked for me.
andy
On Sun, Apr 3, 2011 at 6:23 AM, Haris <fbogdanovic at xnet.hr> wrote:
>
> Hi.
>
> I hope I can ask questions about ht-simple-ajax here. If not, please tell me
> where I can.
> I'm trying out ht-simple-ajax but it doesn't work. I have:
>
> (defparameter *ajax-processor*
> (make-instance 'ajax-processor :server-uri "/ajax"))
>
> (defun-ajax say-hi (name) (*ajax-processor*)
> (concatenate 'string "Hi " name))
>
> (setq *dispatch-table* (list 'dispatch-easy-handlers
> (create-ajax-dispatcher *ajax-processor*)))
>
> And then I go to:
> http://localhost/ajax/SAY-HI?name=Martin
> but nothing happens ?
>
> Thanks
>
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
More information about the Tbnl-devel
mailing list