I have learnt to use cfsavecontent for some basic actionscript, thanks to you.
However, I would like to create some UDF using <CFFunction> but not working.
Here is my code: <cffunction name='chk' output='true' returnType='string'>
<cfargument name='proc' type='string' required='true' hint='Process Action'>
green.process='#arguments.proc#' submitForm() </cffunction> <cfform
name='green' action='dispaffiliate_sub.cfm' method='post' format='flash'
height='400' width='500' skin='HaloGreen' > <cfformgroup type='Panel'
label='Affiliation' style='backgroundcolor:##FF0000;'> <cfgrid name='affGrid'
query='aff' rowheaders='false' > <cfgridcolumn name='affl_id'
display='false'> <cfgridcolumn name='affiliation' header='Affiliation Name'
width='500'> </cfgrid> <cfinput type='text' name='txtaff' label='Affiliation
Name'
bind='{affGrid.dataProvider[affGrid.selectedIndex]['affiliation']}'
required='yes' message='Please enter your Affiliation Name.' >
<cfinput type='hidden' id='aid' name='aid'
bind='{affGrid.dataProvider[affGrid.selectedIndex]['affl_id']}'> <cfinput
type='hidden' id='process' name='process' > <cfformgroup type='horizontal' >
<cfinput id='submit' title='Update' name='update'
value='Update' type='button' onClick='#chk('update')#'/> <cfinput id='del'
title='delete' name='del' value='Delete' type='button'
onClick='#chk('delete')#' /> </cfformgroup> </cfformgroup> I just want to
figure out which button was clicked on the server side. Thanks