Re: Maintaining request in match string.

2003-09-17 Thread Upayavira
Joel P W Pitt wrote: Hi all, I tried giving the image map a name ("map") as so: Ah! I see my mistake. I've been assuming form image buttons, not image maps. You could either use Conal's suggestion in his post, or use this in your HTML: If you use that, you'll be able to use the code you'

RE: Maintaining request in match string.

2003-09-16 Thread Conal Tuohy
Hi Joel Joel wrote: > >> When I examine the XML returned by the RequestGenerator, > it has all > >> the headers > >> etc. and then the parameters. The relevent part looked like: > >> > >> > >> > >> Since you report that the parameters appeared in the RequestGenerator output, you could extract

Re: Maintaining request in match string.

2003-09-16 Thread Joel P W Pitt
Hi all, I tried giving the image map a name ("map") as so: I renamed the request-param to get map properties like so: I still have the same problems :( I may just make an XSP page to process the query string and then redirect to a URL with the coordinates explicitly specified

Re: Maintaining request in match string.

2003-09-16 Thread Upayavira
Joel Pitt wrote: I tried this earlier with the URL Joel quoted and the RequestGenerator ignored the parameters completely. I took a quick look in the generator source code and saw that it dumped an Avalon "Parameters" object to the SAX stream: it called parameters.getNames() to get an iteration of

Re: Maintaining request in match string.

2003-09-16 Thread Joel Pitt
> I tried this earlier with the URL Joel quoted and the RequestGenerator > ignored the parameters completely. I took a quick look in the generator > source code and saw that it dumped an Avalon "Parameters" object to the SAX > stream: it called parameters.getNames() to get an iteration of the > par

RE: Maintaining request in match string.

2003-09-16 Thread Conal Tuohy
David Kavanagh wrote: > Your original note said the URL looked like ... index?35,45 (or > something like that). Normally, the image map (or for image > button) will > have a name and the params returned are image.x and image.y. > If you use > the request generator, what params are shown? A simple

Re: Maintaining request in match string.

2003-09-16 Thread David Kavanagh
Joel, Your original note said the URL looked like ... index?35,45 (or something like that). Normally, the image map (or for image button) will have a name and the params returned are image.x and image.y. If you use the request generator, what params are shown? A simple pipeline in the sitemap

Re: Maintaining request in match string.

2003-09-16 Thread Upayavira
Joel P W Pitt wrote: Woops. Looks like I celebrated too soon. I'm recieving null values using both methods. Here is my flowscript code if it helps: function info() { var x = cocoon.request.getParameter("image.x"); var y = cocoon.request.getParameter("image.y"); What is the 'name' attribute

Re: Maintaining request in match string.

2003-09-16 Thread Christian Haul
On 16.Sep.2003 -- 04:51 PM, Joel P W Pitt wrote: > Hi there, > > I've tried several times to get help here with no luck, so I thought I'd > resort to a more general question. > > Is it possible to use a matcher to match against the request string? > For example: > > If I had the URL > http://loc

Re: Maintaining request in match string.

2003-09-15 Thread Joel P W Pitt
Woops. Looks like I celebrated too soon. I'm recieving null values using both methods. Here is my flowscript code if it helps: function info() { var x = cocoon.request.getParameter("image.x"); var y = cocoon.request.getParameter("image.y"); if (x == null) cocoon.sendPageAndWait("index.xs

Re: Maintaining request in match string.

2003-09-15 Thread Joel P W Pitt
Thanks Upayavira! Both those options work fine. I knew there must be a simple solution to it ;) Thanks, Joel Upayavira wrote: I'm pretty sure the following will work: 1) In the sitemap: 2) In flowscript: var x = cocoon.request.getParameter("image.x"); var y = cocoon.request.getParameter("

Re: Maintaining request in match string.

2003-09-15 Thread Upayavira
I'm pretty sure the following will work: 1) In the sitemap: 2) In flowscript: var x = cocoon.request.getParameter("image.x"); var y = cocoon.request.getParameter("image.y"); Regards, Upayavira Conal Tuohy wrote: Sorry ... I read your question properly this time: I think you might be able t

RE: Maintaining request in match string.

2003-09-15 Thread Conal Tuohy
Sorry ... I read your question properly this time: I think you might be able to use the RequestGenerator to get your image map co-ordinates. > -Original Message- > From: Joel P W Pitt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 16 September 2003 4:52 p.m. > To: [EMAIL PROTECTED] > Subject:

RE: Maintaining request in match string.

2003-09-15 Thread Conal Tuohy
Use the request-param input module: ... See http://wiki.cocoondev.org/Wiki.jsp?page=RequestParameterModule Cheers COn > -Original Message- > From: Joel P W Pitt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 16 September 2003 4:52 p.m. > To: [EMAIL PROTECTED] > Subject: M