delimiters.
-Original Message-
From: Lon Lentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:55 PM
To: CF-Talk
Subject: RE: CFLOOP problem with commas
Huh. Okay. I've never experienced a problem with them. Which isn't to say
that no one will.
-Original Message
As you can see, the first URL outputs normally, but the second URL
breaks at every comma. Is there a way around this? I don't want to
insert Chr() codes if I can help it!
Actually, why not? Normally I don't like this hack because you have to
assume your inserted char doesn't exist, but for
change your delimiter.
cfloop index=ListOfURLs list= #URL1#||#URL2# delimiter=||
that should solve the problem. (it's off the top of my head, so could be a
little wrong).
Shawn Grover
-Original Message-
From: Tim Claremont [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:25
How are you building your list? You could use a non-URL type character, or a small
group of characters, as your delimiter. Something like ~~~ or |||.
-Original Message-
From: Tim Claremont [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:25 PM
To: CF-Talk
Subject:
Tim,
I'd just use a different delimeter that cannot exist in a URL - like a
space:
cfloop index=ListOfURLs list= #URL1# #URL2# delimiters=
cfoutput
#ListofUrls#
/cfoutput
hr
/cfloop
I think I'd scrub the URL first to make sure there is not a space in it.
Maybe
Guys,
Delimeters that are more than 1 (or 2?) characters don't always work in my
experience. CF kinda just uses 1 character for a delimeter.
-mk
-Original Message-
From: Lon Lentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:40 PM
To: CF-Talk
Subject: RE: CFLOOP problem
, and a powerful ally it is. - Yoda
-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:39 PM
To: CF-Talk
Subject: RE: CFLOOP problem with commas
Guys,
Delimeters that are more than 1 (or 2?) characters don't
always work in my
.
- Original Message -
From: Raymond Camden [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, April 24, 2002 8:30 AM
Subject: RE: CFLOOP problem with commas
As you can see, the first URL outputs normally, but the second URL
breaks at every comma. Is there a way around this? I
Huh. Okay. I've never experienced a problem with them. Which isn't to
say that no one will.
-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 4:39 PM
To: CF-Talk
Subject: RE: CFLOOP problem with commas
Guys,
Delimeters
How about URLEncodedFormat in, URLDecode out? That way, you can keep your
comma as the delimiter.
Ryan Kime
-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:39 PM
To: CF-Talk
Subject: RE: CFLOOP problem with commas
Guys
Thanks for the help. Ray came through for me for the second time today.
Since I *KNOW* that I am looping through URLs, then I *KNOW* that a
space is a valid delimiter.
I plugged it in and it worked perfectly. Now I can go home on time.
Thanks, Ray!
Tim,
Just for reference (concerning the URL Encode/Decode):
cfset URL1 = URLEncodedFormat(http://www.foo.com/products/345.html;)
cfset URL2 =
URLEncodedFormat(http://www.bar.com/articles/editorials?rfc=435563;)
cfset URL3 =
URLEncodedFormat(http://www.foobar.com/cda/4545,4566rc.html?pg=1;)
As you can see, the first URL outputs normally, but the second URL
breaks at every comma. Is there a way around this? I don't want to
insert Chr() codes if I can help it!
Remember that when picking a delimiter, any character is fair game, you can
be pretty much assured that something like the
13 matches
Mail list logo