Solved

passing text string parameters

Posted on 2003-10-28
6
140 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
  • 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
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Domain Name E-mail Address & Outlook Integration 3 35
Apached AXIS end to end simple good example 2 72
Script 12 114
Reverse Proxy Server 6 69
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

18 Experts available now in Live!

Get 1:1 Help Now