phillystyle123
asked on
passing text string parameters
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_Event name,ListF indNoCase( Lst_Calend arDay,i_da y,'~'),'~' )#</CFOUTP UT>"><cfou tput>#List GetAt(Lst_ Eventname, ListFindNo Case(Lst_C alendarDay ,i_day,'~' ),'~')#</c foutput></ a>
but this Eventname doesn't show up on my results page:
http://redcatweb2.org/calendar/event.cfm?Eventname=Full Spectrum Animation – 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?
<a href="event.cfm?Eventname=
but this Eventname doesn't show up on my results page:
http://redcatweb2.org/calendar/event.cfm?Eventname=Full Spectrum Animation – 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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
any luck
ASKER
hi CFDevHead,
http://redcatweb2.org/calendar/event.cfm?Eventname=<PRE>Bach’s%20Circle :%20Bach%2 0and%20the %20Avant-G arde</PRE>
is what i'm getting when using your code. not working but at least i'm not getting an error.
http://redcatweb2.org/calendar/event.cfm?Eventname=<PRE>Bach’s%20Circle
is what i'm getting when using your code. not working but at least i'm not getting an error.
wrong function use this instead HTMLEditFormat
ASKER
still no luck - renders what i was getting originally:
http://redcatweb2.org/calendar/event.cfm?Eventname=Full%20Spectrum%20Animation%20–%20The%20Art%20of%20Motion:%20A%20Film%20Series%20Produced%20By%20EAARC
http://redcatweb2.org/calendar/event.cfm?Eventname=Full%20Spectrum%20Animation%20–%20The%20Art%20of%20Motion:%20A%20Film%20Series%20Produced%20By%20EAARC
ASKER
CFDevHead - i think what we're looking for is
urlencodedformat - this is what my code (that now works!) looks like:
<cfset myUrl = urlencodedformat(#ListGetA t(Lst_Even tname,List FindNoCase (Lst_Calen darDay,i_d ay,'~'),'~ ')#)>
<cfoutput>
<a href="event.cfm?Eventname= #myUrl#"># ListGetAt( Lst_Eventn ame,ListFi ndNoCase(L st_Calenda rDay,i_day ,'~'),'~') #</a>
</cfoutput>
thanks for the help!
urlencodedformat - this is what my code (that now works!) looks like:
<cfset myUrl = urlencodedformat(#ListGetA
<cfoutput>
<a href="event.cfm?Eventname=
</cfoutput>
thanks for the help!