I do the same thing, except i usually have a hidden form field called
"fuseaction", so the syntax looks like:

<input type="button"
onclick="document.formName.fuseaction.value='fusecircuit1';document.form
Name.submit();" value="Do this 1">

/t


>-----Original Message-----
>From: Matthew Small [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, January 12, 2005 7:03 PM
>To: CF-Talk
>Subject: RE: Multiple submit buttons and Fusebox
>
>I would change the action of the form based on which button 
>was pushed.  For
>example:
>
><input type="button"
>onclick="document.formName.action='index.cfm?fuseaction=fusecircuit1'"
>value="Do this 1">
>
><input type="button"
>onclick="document.formName.action='index.cfm?fuseaction=fusecircuit2'"
>value="Do this 2">
>
>...
>
>- Matt Small
>
>
>
>-----Original Message-----
>From: Ken Dunnington [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, January 12, 2005 12:54 PM
>To: CF-Talk
>Subject: Multiple submit buttons and Fusebox
>
>Hi, I have a quick fusebox question that I haven't been able to find
>an answer to yet. I have a few ideas, but I thought I'd run it by some
>people with experience. It's fusebox-specific, so I apologize if it's
>too off-topic.
>
>How, in fusebox, do you handle multiple submit buttons in a form? For
>example, a form that has  select, delete, and add buttons? I was
>thinking it should be submitted to an action that will redirect to
>other fuseactions depending on the button pressed (an arbiter) but
>should that be done in the circuit.xml file, or in an included page?
>If it were done in an included page, there would be the problem of
>passing the attributes along to any redirected page. If it were done
>in XML, I suppose you would use if clauses to do it, but that just
>doesn't 'feel' right to me :)
>
>In Mach-II, I think what I would do is have a listener that would
>check the event object for the existence of each 'action', and use
>announceEvent() to continue processing. And in good old CFML,
>obviously I'd just have an action page with if
>(structKeyExists(form,"actionToWatchFor")) blocks.
>
>Any thoughts?
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190120
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to