Glad to be of help, every way worked but its just getting that common denominator for,
>>That cursed NS Browser! :) gave me a headache for a while as well.... respectfully j -----Original Message----- From: Matthew Friedman [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 7:44 PM To: CF-Talk Subject: RE: Dynamic form actions Guys, We have a winner. This is the only way it worked. I checked canalization and everything, thanks John for the help. PS sorry if I offended anyone about my cursing the NS browser. Matt -----Original Message----- From: John McCosker [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 2:06 PM To: CF-Talk Subject: RE: Dynamic form actions sorry matt, document.DynFormAction.action=action; should be document.DynFormAction.action=url; if you do it this way you have no need for multiple forms on your page at all, also it works in NS and opera fine, J -----Original Message----- From: John McCosker [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 7:02 PM To: CF-Talk Subject: RE: Dynamic form actions Matt I really like this way personally, perfect within fusebox apps if you want to pass the fuseactions within <HIDDEN> form fields or maintaining a user session state, <SCRIPT LANGUAGE="JavaScript"> function postMe(url){ document.DynFormAction.action=action; document.DynFormAction.method='post'; document.DynFormAction.encoding='multipart/form-data'; document.DynFormAction.submit(); } </SCRIPT> <FORM NAME="DynFormAction" onSubmit="return false;"> <INPUT TYPE="IMAGE" SRC="dir/ImageName" onClick="postMe('patheName/template1.cfm');"> <INPUT TYPE="IMAGE" SRC="dir/ImageName" onClick="postMe('patheName/template2.cfm);"> <a href="javascript:postMe('patheName/template3.cfm);">link one</a> <a href="javascript:postMe('patheName/template4.cfm);">link one</a> </FORM> J.... -----Original Message----- From: Matthew Friedman [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 5:38 PM To: CF-Talk Subject: Dynamic form actions Is there a way to have a form with two images as buttons, but will send the form fields to a different url. i.e. you have two form fields Username Password and image A and Image B If you hit image A the form is posted to www.a.com and if you hit image B the form is posted to www.b.com the JavaScript to submit the form is simple but can you control the "action" location. Any help would be great. Matt Friedman ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists