Well, besides not telling you what the error message was (oops), I realized
after I sent this e-mail that I was missing the necessary hidden form fields
with this particular form.
H.
> -----Original Message-----
> From: Owens, Howard [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2003 5:22 PM
> To: CF-Talk
> Subject: OT: JavaScript form submit
>
> 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
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4