sorry, I responded too quick. This will actually be ListFind and not
ListContains.
On Jan 18, 2008 2:32 PM, Qasim Rasheed <[EMAIL PROTECTED]> wrote:
> I am hoping this will work
>
> function ListContains(list,item,delim){
> var del = (delim == null)? ",": delim;
> return list.split(del).indexOf(item) != -1;
>
> }
>
> On Jan 18, 2008 12:38 PM, Charlie Griefer <[EMAIL PROTECTED]>
> wrote:
>
> > On Jan 18, 2008 9:35 AM, Claude Schneegans <[EMAIL PROTECTED]>
> > wrote:
> > > >>that's not to say there's not a simple way tho.
> > >
> > > The only other way I can think of is using regExp, but not really
> > simpler.
> >
> > yeah, i thought about using subStr... but then you'd have to check for
> > an optional comma in front and an optional comma behind to account for
> > first/last elements... and at that point you enter the realm of
> > regExp, so i'd wuss out and just do the loop :)
> >
> > --
> > "Scientists tell us that the fastest animal on earth, with a top speed
> > of 120 feet per second, is a cow that has been dropped out of a
> > helicopter." - Dave Barry
> >
> >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296844
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4