Solved

passing text string parameters

Posted on 2003-10-28
6
149 Views
Last Modified: 2013-12-24
i'm using a calendar app with an administrative interface.  even though i know it would be desirable to use numeric values  i don't want to spend much more time developing the admin interface i need to find a way to pass along text strings that won't fail. for example i'd love to use this:

<a href="event.cfm?Eventname=<CFOUTPUT>#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#</CFOUTPUT>"><cfoutput>#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#</cfoutput></a>

but this Eventname doesn't show up on my results page:
http://redcatweb2.org/calendar/event.cfm?Eventname=Full Spectrum Animation &#8211; The Art of Motion: A Film Series Produced By EAARC

however this Eventname does:
http://redcatweb2.org/calendar/event.cfm?Eventname=Independent Los Angeles: A Festival of Independent Filmmakers Los Angeles

any ideas how to tighten this up a bit so it always works?
0
Comment
Question by:phillystyle123
[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
  • 3
  • 3
6 Comments
 
LVL 9

Accepted Solution

by:
CFDevHead earned 125 total points
ID: 9635475
Try  using
<cfset myUrl = HTMLCodeFormat(#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#)>
<cfoutput>
<a href="event.cfm?Eventnamea=#myUrl#>#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#</a>
</cfoutput>
0
 
LVL 9

Expert Comment

by:CFDevHead
ID: 9635795
any luck
0
 

Author Comment

by:phillystyle123
ID: 9636122
hi CFDevHead,

http://redcatweb2.org/calendar/event.cfm?Eventname=<PRE>Bach&#8217;s%20Circle:%20Bach%20and%20the%20Avant-Garde</PRE>

is what i'm getting when using your code. not working but at least i'm not getting an error.  
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
LVL 9

Expert Comment

by:CFDevHead
ID: 9636182
wrong function use this instead HTMLEditFormat
0
 

Author Comment

by:phillystyle123
ID: 9636332
0
 

Author Comment

by:phillystyle123
ID: 9636789
CFDevHead - i think what we're looking for is

urlencodedformat - this is what my code (that now works!) looks like:

<cfset myUrl = urlencodedformat(#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#)>
<cfoutput>
<a href="event.cfm?Eventname=#myUrl#">#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#</a>
</cfoutput>

thanks for the help!
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

751 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