Dave, the x and y attributes get set when you click on the image and are the
x and y co-ordinates of the image. I would like to see the code you have to
be able to achieve this, cause I can't see how your suggestion will work.

-----Original Message-----
From: Dave Wilson [mailto:[EMAIL PROTECTED]]
Sent: 02 August 2000 20:30
To: [EMAIL PROTECTED]
Subject: Re: Multiple actions from a Form?


As far as I remember, you need to set the x,y values for each image button
in order to be able to pass their names as action attributes to your action
page. So something like,

<input type=image src=image.gif name=submit x=1 y=1>

should hopefully do what you want. OR of course you can use Philip's
suggestion with Javascript but be careful of non Javascript enabled
visitors.


Dave Wilson
Internet Technology Manager,
BizNet Solutions

<Allaire Premier Partner>
Co-Founder CFUG Ireland
http://www.cfug.ie

224, Lisburn Road
Belfast BT9 6GE

Tel: 02890 225 776
Fax: 02890 223 223
web: http://www.biznet-solutions.com

email: [EMAIL PROTECTED]
----- Original Message -----
From: Philip Arnold - ASP <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 02, 2000 10:09 AM
Subject: RE: Multiple actions from a Form?


> > Ok I sought of use this method to make actions against a form, the
problem
> > is that with this form the client wants images as the buttons.
> > Now I am well
> > aware of the way things work with images, except I haven't been able to
> > figure out how to send an action type to the action page.... Sort
> > of Fusebox in a way:-)
> >
> > Ok here is the problem I face, I have two buttons and if I use the input
> > type=submit I can use the name=action to decide what action needs to
take
> > place. However for some reason the input type=image does not work
> > this way,
> > can someone help me out here. I know I did this once before on a site,
but
> > as I have done so many sites I can't find the code quick enough:-)
>
> Why not do it with JavaScript?
> Don't have the buttons as type="image", but have them as real images, and
> have an onClick method which calls a JS function to set the Action
>
> Have the default Action as a hidden field, then just set
> document.myForm.Action="whatever" in the function
>
> As long as the user has JS enabled, then it'll work fine
>
> Philip Arnold
> ASP Multimedia Limited
> T: +44 (0)20 8680 1133
>
> "Websites for the real world"
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to