-Original Message-
From: Jerry Hamlet [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 11:00 PM
To: Cees Hek; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [cgiapp] Image Submit Buttons
Cees,
No, unfortunately you can't. When an image submit button is used the 'value
Hey All --
Regarding image buttons, I'm an advocate of using light-weight Javascript
for this purpose:
a href=javascript:submit_rm_one()img src=rm_one.gif/a
This is, to me, the most simple, reliable way of having multiple image
buttons to submit from a single form to multiple
Thanks Jesse,
Your solution is basically what I came up with also. I added an alternative
run-mode parameter that the routine could fall back on if it didn't find any
parameters with a trailing x or y preceded by a period.
sub select_runmode {
my $self = shift;
my @params= $self-param();
Cees,
No, unfortunately you can't. When an image submit button is used the 'value'
attribute is not passed with the form parameters. What you get out of the
image button is a 'rm.x=29' and 'rm.y=47', the numbers being the pixels
where the user clicked from left and top of the image.
Try it with
Jerry Hamlet wrote:
I'm trying to use images to handle the submission of my forms (they look
nicer) and I'm having trouble using them with the run_mode of
CGI::Application. If my form needs to go in one direction, they work fine,
but if the form can branch in multiple directions, I'm having
Hi,
I¹m new to using CGI::Application and although I quickly took up it¹s use,
I¹ve encountered a bit of a stumbling block.
I'm trying to use images to handle the submission of my forms (they look
nicer) and I'm having trouble using them with the run_mode of
CGI::Application. If my form needs