Re: Passing the results from the CFDIRECTORY to another template?

2001-09-26 Thread phumes1
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-26 Thread Bruce Holm
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-26 Thread phumes1
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-25 Thread phumes1
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-25 Thread phumes1
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-25 Thread phumes1
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

Fwd: Re: Passing the results from the CFDIRECTORY to another template?

2001-09-25 Thread phumes1
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

RE: Re: Passing the results from the CFDIRECTORY to another template?

2001-09-25 Thread Billy Cravens
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-25 Thread Bruce Holm
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-24 Thread phumes1
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:

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-24 Thread Bruce Holm
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

RE: Passing the results from the CFDIRECTORY to another template?

2001-09-24 Thread Kevin Roche
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-24 Thread phumes1
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-24 Thread phumes1
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

Re: Passing the results from the CFDIRECTORY to another template?

2001-09-24 Thread Bruce Holm
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