Richard,

Is it possible to make your buttons links instead of buttons, or input 
type="image" and use a gif image for your buttons?  These both send 
information about themselves to the server.  You can still onClick events on 
both of those input types and do your preprocessing.

Regarding using cfform -- if you are doing your preprocessing and then want 
to use any cfform validation after that, you have to do kind of a 
workaround.  It's described at livedocs or cfquickdocs.  I'm actually 
working on something like that right now.  You have to use one of the js 
functions that is inserted by cf when you use cfform.  I can get more 
descriptive if you still need help.

-- Josh





----- Original Message ----- 
From: "Richard White" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Thursday, November 02, 2006 9:43 AM
Subject: cfform tasks before submit


> Hi, i have a cfform with 2 buttons: 'Move to next step' & 'Move to 
> previous step'
>
> Irregardless of what button is clicked i need to do some tasks before the 
> form is submitted when the button is clicked
>
> I tried to make the buttons type button instead of submit and then do an 
> onclick event. I then used the javascript document.forms.submit() after 
> processing the tasks i needed to do.
>
> However the problem with this is that the action page doesnt receieve any 
> information relating to the button that was pressed
>
> is there a way that i can get round this or does any one have any advice
>
> thanks
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258895
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to