OK, I've done this before ... copied previous used script ... but it's not
work ... maybe somebody will see something I'm not seeing.
Here's the function:
function updateSubmit(itemID) {
document.cartform.action = "index.cfm";
document.cartform.saction.value = "update";
document.cartform.CFID.value = "#URL.CFID#";
document.cartform.CFTOKEN.value = "#URL.CFTOKEN#";
document.cartform.I_ID.value = itemID;
document.cartform.submit();
}
Here's the opening form tag:
<form name="cartform">
Here's the image I want to click for form submission (I have multiple images
for submitting the same form, based on the desired action, so each image
needs to send its own form variable, just like a submit button would, but
I've discovered that doesn't work with image buttons on forms, so I'm trying
to fashion a workaround).
<cfoutput>
<a href="##" onclick="updateSubmit('#itemIDList#');"><img
src="update_85x22.gif" alt="" border="0"></a>
</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Owens
Internet Operations Coordinator
InsideVC.com/Ventura County Star
[EMAIL PROTECTED]
AIM: GoCatGo1956
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4