I do not know if it is the same person, but there is a CF JS function plugin for jQuery.
http://cfjs.riaforge.org/ I did not look to see if it has listcontains or not, just assumed it does. On Jan 18, 2008 11:38 AM, Jerry Guido <[EMAIL PROTECTED]> wrote: > Not exactly. But close. > ListFind and ListFindNoCase might do the trick. > > The guy from leftcorner.com (offline) ported a bunch of CF functions to > JS. I still have a copy. Pretty handy. > > http://photos.guidofamily.org/LeftCorner.js > > Full list of functions in library: > > Abs(number) > ArrayAppend(array, value) > ArrayLen(array) > ArraySort(array, sort_type [, sort_order ]) > ArrayToList(array [, delimiter ]) > Ceiling(number) > Compare(string1, string2) > CompareNoCase(string1, string2) > DateDiff(datepart, date1, date2) > DecimalFormat(number) > DollarFormat(number) > Find(substring, string) > FindNoCase(substring, string) > Insert(substring, string, position) > IsDate(date) > IsNumeric(string) > LCase(string) > Left(string, count) > Len(sting) > ListAppend(list, value, [, delimiters]) > ListDeleteAt(list, position [, delimiters ]) > ListFind(list, value [, delimiters ])) > ListFindNoCase(list, value [, delimiters ])) > ListGetAt(list, position [, delimiters ])) > ListLen(list [, delimiters]) > ListToArray(list [, delimiters]) > LTrim(string) > Mid(string, start, count) > Replace(string, substring1, substring2 [, scope ]) > ReplaceNoCase(string, substring1, substring2 [, scope ]) > Reverse(string) > Right(string, count) > Round(number [, number of decimal places]) > RTrim(string) > Trim(string) > UCase(string) > URLDecode(string) > URLEncodedFormat(string) > > > > Jerry Guido > Programmer > MGT of America, Inc. > [EMAIL PROTECTED] > > The information contained in this electronic communication is intended > only for the use of the addressee, and may be a confidential > communication. If you are not the intended recipient, you are hereby > notified that you have received this transmittal in error; any review, > dissemination, distribution or copying of this transmittal is strictly > prohibited. > > -----Original Message----- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Friday, January 18, 2008 12:16 PM > To: CF-Talk > Subject: SOT: JavaScript version of listContains() > > Does anybody know if there is a simple, basic JavaScript equivalent of > the CFML listContains() function that can determine if a given value is > one of four possible values. > > TIA > Ian > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:296845 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

