Solved

URLEncode a link to a file

Posted on 2010-11-08
1
426 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

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…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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