Solved

URLEncode a link to a file

Posted on 2010-11-08
1
410 Views
Last Modified: 2012-05-10
Hi,
I have a link to a file that is not opening.  I found the URLEncode function might work.  
However, I've tried several different ways and am not sure if it can be used in a link for a file, because in between different variables there are spaces.  I need to know how I can set the URLEncode function, if I'm doing something wrong.
This is what should be included:

<cfloop list="#qGetData.file#"  index="i"   >
                   
<a href="http://server:8001/obi/Path-MA/Attachments_Directory/Marketing/#qGetData.group_Name# ID #url.id# (By #qGetData.submitted_By#) - #DateFormat(qGetData.date_Submitted, 'mmddyyyy')#/#i#")>#i#</a><br/>      
</cfloop>

Variables like group_Name may have spaces, but the path itself does have spaces.  How to go about this?
0
Comment
Question by:armanbena
1 Comment
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
Comment Utility
Did you read the answers on your other thread? You were already given the answer to this question:  URLEncode _only_ the portion of the path with spaces.

http://www.someserver.com/somepath/#URLEncode("portion of the path with spaces)#

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Cold_Fusion_Markup_Language/Q_26591859.html
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

13 Experts available now in Live!

Get 1:1 Help Now