ok i got this.. it works.. but is SO freaking bad...

on the tree it displays the imageicone/name then below it show Delete image.
i would rather it all be on 1 line, but cant get it to look right.

very clumsy & not safe/secure..
i sure could use some help...

thanks 
-paul

:::::::::::::: tree section page.cfm
<cftreeitem value="#Images.name#" display="#Images.name#" parent="Images" 
img="#request.publicurl#/EM/Global_Images/paint10.gif" 
href="#request.publicurl#/EM/#ThisDirectory#/Images/#Images.name#" target="_blank" 
queryasroot="No" expand="No"> 

<!--- the link to delete comes under the file to delete wish it was lined up next to 
it... Also passes the dir 7 file to delete through url, would rether be a form field.. 
--->
<cftreeitem value="#Images.name#" display="X Delete: #Images.name#" parent="Images" 
ref="#REQUEST.publicurl#/em/admin/files/act_DeleteOnPublic.cfm?thePath=#Application.PhysicalPath##ThisDirectory#\Images\#Images.name#"
 queryasroot="No" expand="No">

:::::::::::::: delete page.cfm
<!--- HERE we are deleting this file that has been passed in a urlparameter.
i would rather pass it more securly but am not sure how?? --->
Deliting file <cfoutput>#thePath#</cfoutput>
<cfoutput>
        <cffile action="DELETE" file="#thePath#">
</cfoutput>

<cflocation url="#request.publicurl#/EM/Admin/index.cfm?fuseaction=ViewFile" 
addtoken="No">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to