Thanks Phillip, can send me off list the sample code I need to do that. I am
still not upto speed on Javascript but I can debug it, strange huh! Now that
you mention it, I think this is how I got around it last time.... Now if
only I had the name of that site I wrote it on:-)
-----Original Message-----
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: 02 August 2000 19:10
To: [EMAIL PROTECTED]
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.