I have been using mod_wxjs recently and I have a query/ possible bug
report.
The nuts of it is, from the following url:
www.mysite.com/events/gigs/index.wxjs
what should request.pathInfo be?
I was expecting
request.pathInfo === "events/gigs"
but I'm getting an empty string.
If an empty string is indeed the correct behaviour, which property of
the request object should contain the path info of "events/gigs"?
I'm really enjoying hacking about with server side js for web
development, so thank you:)
Cheers
Si
On 6 sep, 13:08, jeffwad <jeff...@gmail.com> wrote:
> Hi,
>
> I have been using mod_wxjs recently and I have a query/ possible bug
> report.
>
> The nuts of it is, from the following url:
>
> www.mysite.com/events/gigs/index.wxjs
>
> what should request.pathInfo be?
>
> I was expecting
>
> request.pathInfo === "events/gigs"
>
> but I'm getting an empty string.
>
> If an empty string is indeed the correct behaviour, which property of
> the request object should contain the path info of "events/gigs"?
>
The empty string is indeed the correct behaviour. pathInfo is
everything that follows the filename:
www.mysite.com/events/gigs/index.wxjs/a/b/c
would result in a/b/c in pathInfo
Try request.filename to get the information you want.
When this doesn't work, please let me know, I can always add some more
variables.
Franky.
Thanks for your quick response.
request.filename does return the location of the file.
Unfortunately I'm redirecting everything through one page using
mod_redirect, so the location returned is that of the redirected file,
not the the path in the url.
I have tried all the documented properties of the request object and
not been able to access the data needed.
If you could add this property to the request object I'd really
appreciate it.
Cheers
Si
Franky
Thanks for doing this. I'll test it when I get the chance.
Si
> FrankyI