[Lispweb] Getting url params when serving a page
Richard Newman
r.newman at reading.ac.uk
Sat Apr 1 16:10:36 CST 2006
Jonathon,
I don't quite understand what you want. I'm assuming:
You have a page, not hosted by Araneida, that links to a page
hosted by Araneida.
You want the Araneida page to show different data based on URL
params.
You have two options:
1. using a standard hyperlink, either encode URL parameters or add on
to the URL. Araneida will see the params, and you can conditionalise.
e.g.,
redirector: <a href="foo?param=bar">Link to Araneida</a>
Araneida:
(with-url-params (param) (request-url request)
(if (string= param "bar")
...))
2. using POST from a form/AJAX, do the same with form fields and body
parameters.
Does that answer your question?
-R
On 1 Apr 2006, at 11:21, Jonathon McKitrick wrote:
>
> Suppose I want to link to a page, but show slightly different data
> depending
> on some url params. The redirecting page is NOT hosted on
> araneida, but
> somehow needs to encode a parameter which I can then access when
> generating
> the page so I can set an invisible field or something similar.
>
> What would be a good way to do this?
>
> -Jonathon
> --
> "I am sure that Jesus would use a command prompt. Hello? Ten
> Commandments??"
>
> _______________________________________________
> lispweb mailing list
> lispweb at red-bean.com
> http://www.red-bean.com/mailman/listinfo/lispweb
More information about the lispweb
mailing list