I'm dumping the session variables but something strange is happening.
<cfparam name="dir" default="d:\">
<cfdirectory action="LIST" directory="#dir#" name="dirlist">
<cfoutput query="dirlist">
<table border="0" cellpadding="0" cellspacing="0"
width="100%" height="20">
<tr height="20">
<td> </td>
<td valign="middle" width="100%"
height="20">
<a href="javascript:void(0)"
title="Left Click here..." onMouseOver="popUp('elMenu1',event)"
onMouseOut="popDown('elMenu1')" onClick="return false" class="dirlinks"
alt="#name#"><font class="dirlinks">#name#</font></a></td>
</tr>
</table>
</cfoutput>
Notice the results. It always lists the last filename in the direectory?
act.dat
Key = CFID (Value = 33)
Key = CFTOKEN (Value = 50259171)
Key = FILENAME (Value = uniform_act.job)
Key = LOGGEDIN (Value = FALSE)
Key = SESSIONID (Value = MYAPPLICATION_33_50259171)
act_test.dat
Key = CFID (Value = 33)
Key = CFTOKEN (Value = 50259171)
Key = FILENAME (Value = uniform_act.job)
Key = LOGGEDIN (Value = FALSE)
Key = SESSIONID (Value = MYAPPLICATION_33_50259171)
At 10:28 AM 9/24/01 -0700, you wrote:
>There are multiple ways to pass it. What directory info are you wanting to
>pass?
>
>You can pass info from one template to another via:
> Session vars
> Client vars
> Application vars
> Form fields
> URL parameters
> etc
>
>You may want to store the directory info you want into a structure or array,
>scope it as a Session variable, then reference it on the next template.
>
>Bruce
>[EMAIL PROTECTED]
>
>----- Original Message -----
>From: <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Monday, September 24, 2001 10:00 AM
>Subject: Re: Passing the results from the <CFDIRECTORY to another template?
>
>
> > How can I pass the results from the <CFDIRECTORY to another template?
> >
> > Name
> > Size
> > Type..etc
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists