Search found 5 matches

by fpt
Wed May 16, 2012 8:54 pm
Forum: Common Lisp
Topic: hunchentoot: trouble dispatching requests
Replies: 8
Views: 14992

Re: hunchentoot: trouble dispatching requests

I finally got it! http://drpantzo.mine.nu:4242/ The answer turned out to be a combination of AJAX and supplying the output of the text generation function directly to the dispatcher as a string (compute-ice-cream returns a string): (setq *dispatch-table* `(,(create-prefix-dispatcher "/compute&q...
by fpt
Wed May 16, 2012 2:22 pm
Forum: Common Lisp
Topic: hunchentoot: trouble dispatching requests
Replies: 8
Views: 14992

Re: hunchentoot: trouble dispatching requests

I think seeing your entire file may be helpful. After your suggestion I decided to learn some Javascript and try the AJAX route, though not yet all the way to JSON. With hunchentoot's default dispatcher (that is, NIL), index.html loads with a blank space below the "Compute Ice Cream" butto...
by fpt
Sun May 13, 2012 6:36 pm
Forum: Common Lisp
Topic: hunchentoot: trouble dispatching requests
Replies: 8
Views: 14992

Re: hunchentoot: trouble dispatching requests

The purpose of the exercise is to display new text generated by another function. It doesn't have to be yet another HTML page. So then it seems like the way to go is to install CL-JSON and learn some Javascript. WRT the normal functions you said you add to the dispatch table: Are they acceptor-dispa...
by fpt
Fri May 11, 2012 6:51 am
Forum: Common Lisp
Topic: hunchentoot: trouble dispatching requests
Replies: 8
Views: 14992

Re: hunchentoot: trouble dispatching requests

Thanks for the feedback, wvxvw. So then it seems it'd be simpler to avoid caches and headers. I'll break this web application up into two pages: 1. Let index.html have a link to output html. 2. When index.html's link to output.html is clicked, the application is to compute a new output.html file… ...
by fpt
Thu May 10, 2012 5:20 pm
Forum: Common Lisp
Topic: hunchentoot: trouble dispatching requests
Replies: 8
Views: 14992

hunchentoot: trouble dispatching requests

hunchentoot: requests do not dispatch Disclaimer: I am a Lisp & software engineering novice and utter web application newbie. This message regards my first attempt at a web application. I'm still at a stage where having basic things, particularly about web application development, explicitly spe...