Hi Bruce,
How do I retrieve the information on the file that was clicked on the
test.cfm page and pass that to the template.cfm
to compare for a match and then pull the information from the array.
I can't seem to get the Session.stDirFileName[menuSelection] to work?
Output from test.cfm page
Using the session-scoped structure gives you the ability to transfer the
CFDIRECTORY results to the other template. What you ask about now is how to
use the selection made to index into this structure.
I would have to see the code you use to create the menus. As I recall,
those menus you pop
Now I'm really confused.
All the javascript menu does is load different template files.
I need to pass the filename that the user clicks on from the list created
by the cfdirectory...cfoutput query=dirlist
and your array stuff to the template that the menu loads.
Attached is my code.
Any
Hi Bruce,
Could there be a syntax error in the code below? This is the error I keep
getting. Below the error I've attached my test file. I've removed the
javascript for the popup menu. I want to get your code working first. If I
comment out these two lines it runs ok.
cfset
OK.
It seems I have it working properly now. See attached screen captures.
How would I check which link was clicked (RecNo) and match that against the
(RecNo) in the fileinfo.cfm (template) and display the filename.
Sorry for asking so many questions but this is kinda over my head.
Thanks
Opps.
Forgot to attach the screen captures.
At 11:44 AM 9/24/01 -0700, you wrote:
Make sure you have session management activated...then
cfdirectory name=queryName ...
!--- Create a new structure for each column of info you want ---
cfset Session.stDirFileName = StructNew()
cfset
Opps.
Forgot to attach the screen captures.
OK.
It seems I have it working properly now. See attached screen captures.
How would I check which link was clicked (RecNo) and match that against the
(RecNo) in the fileinfo.cfm (template) and display the filename.
Sorry for asking so many
I don't think the list allows attachments. Right, Dino?
---
Billy Cravens
Web Development, EDS
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 2:11 PM
To: CF-Talk
Subject: Fwd: Re: Passing the results from the
You didn't scope these two variables to be Session variables...
Change them to be:
cfset Session.stDirFileName[RecNo] = Name
cfset Session.stDirFileSize[RecNo] = Size
- Original Message -
From: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 10:11 AM
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:
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
Hi,
You could save them in a session variable or pass them in a form field.
Kevin
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 24 September 2001 18:01
To: CF-Talk
Subject: Re: Passing the results from the CFDIRECTORY to another
template?
How can I pass
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?
All the information from the CFDIRECTORY Name, Type etc.
You can pass info from one template to another via:
Session vars
Client vars
Application vars
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
Make sure you have session management activated...then
cfdirectory name=queryName ...
!--- Create a new structure for each column of info you want ---
cfset Session.stDirFileName = StructNew()
cfset Session.stDirFileSize = StructNew()
cfset RecNo=1!--- set an index counter ---
cfoutput
15 matches
Mail list logo