Maybe don't make the images inputs at all, but rather just normal image tags wrapped 
with an href.  The href could then call a function that dynamically sets the 
fuseaction (a hidden form field).  Something like this:

<form name="myForm" action="index.cfm" method="POST">
   <input type="hidden" name="fuseaction" value="">
   <a href="javascript:DoSubmit('foo')"><img src="myimage1.gif"></a>
   <a href="javascript:DoSubmit('bar')"><img src="myimage2.gif"></a>
</form>

the javascript would be:

function DoSubmit(action)
   {
   document.myForm.fuseaction = action;
   document.myForm.submit();
   }

Hope that helps.

chris
----------------
At 4:53 PM -0400 7/28/00, Geoffrey V. Brown wrote:
>Hi,
>I have a project that requires that form submit buttons use images.  This
>creates a problem when trying to make this app fusebox compliant.  In normal
>situations, I would do the following using a submit button:
>
><input type="submit" name="fuseaction" value="dothis">
>Returns: #form.fuseaction# = dothis
>
>However, given that I have multiple image submits in a single form, each
>must have a separate name.  As most of you know, you can not assign an
>explicit value to an image submit, as it returns mouse coordinates as the
>form value.  Example:
>
><input type="image" src="myimage.gif" name="fuseaction" alt="myimage"
>height="10" width="10">
>Returns: form.fuseaction.x = 4 (any number) and form.fuseaction.y = 9 (any
>number).
>
>So... to keep this complaint, what do I do?
>
>Thanks,
>Geoffrey Vail Brown
>______________________________
>Director of Online Operations
>Deerfield.com
>231.935.4640
>[EMAIL PROTECTED]
>
>Check out our complete line of Internet leveraging software at:
>http://www.deerfield.com 

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

Reply via email to