Solved

URLEncode a link to a file

Posted on 2010-11-08
1
423 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
ID: 34092735
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

763 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