Solved

Mapping Question, getting some error with a <cfset>

Posted on 2004-08-06
4
184 Views
Last Modified: 2013-12-24
Hi,

I am trying to use the following code, but seem to get an error with this line:

<cfset href = /Mapped_Dir/&#GetFileFromPath(Key)#>      

Error:  Invalid CFML construct found on line 52 at column 47.  
ColdFusion was looking at the following text:
/

 
I tried to setup a mapping ColdFusion (not sure if I was supposed to or not, but thought I should).  The mapping looked like this in CFadmin

Logical Path: /Mapped_Dir
Directory Path: X:\files

The code block is below:

<CFOUTPUT query="GetResults">
                  
      <cfset dbfilename = #GetFileFromPath(Key)#>
      <cfset href = /Mapped_Dir/&#GetFileFromPath(Key)#>      
            
      <tr>
                      <td class="intro">
<a class="blah" href="##" onclick="javascript: window.open       ('#href#','','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,width=800,height=600'); return false;">
        #dbfilename#
</a>                              
            </TD>
      </tr>            
                  
</CFOUTPUT>      

It seems some of the slashes in the <cfset> tag shown above are creating the problem.

Anyone have any thoughts?

Thanks

-WestSide
0
Comment
Question by:Westside2004
4 Comments
 
LVL 1

Author Comment

by:Westside2004
ID: 11741592
Hi..

Answered my own question...

I need quotes in the <cfset> tag

<cfset href = "/Mapped_Dir/&#GetFileFromPath(Key)#">

Thanks...  Please delete or close this question out if possible..
0
 
LVL 17

Expert Comment

by:anandkp
ID: 11751092
yeah ... also JFYI : u cld also write it as

<cfset href = "/Mapped_Dir/#GetFileFromPath(Key)#">
[u dont need to use "&" there]

K'Rgds
Anand
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 11753488
Please post here lettig them know you solved your own question :

http://www.experts-exchange.com/Community_Support/

Include a link to this question.
0
 

Accepted Solution

by:
WesLennon earned 0 total points
ID: 11754867
As requested this question will now be placed in PAQ, and 125 points have been refunded.

Thank you,

Wes Lennon
Director of Community Services
Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to configure and install nginx ? 1 434
CFFILE upload help 98 138
System Analysis 5 52
Problem to go to Web page 2 100
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now