ColdFusion list functions in Javascript?

How many times have you wished for that?

ColdFusion is tops at list parsing. I remember back in the day all my data structures were either lists or structs. With some combination of structs and lists, I could solve anything. Of course, that was before UDFs and Components and all that.

Anyways, Topper at cftopper has made available javascript functions that operate on lists. The wait is officially over. No more tossing about with ugly looking arrays.... ;)

Have a look

UPDATE: There are at least two three other CF/Javascript projects out there:

1. From Leftcorner JavaScript Library of ColdFusion Functions.

This is a JavaScript library that emulates many ColdFusion functions. It is useful for ColdFusion developers who are new to JavaScript or who want to maintain consistency in a ColdFusion and JavaScript mixed application. It is also useful for developers who prefer the ColdFusion (and Visual Basic) syntax of invoking functions.

2. From Shlomy Gantz CFMLjsLibrary

Basically it is a translation of ColdFusion functions to javascript.

3. For the JQuery fans from Christopher Jordan CFJS for jQuery is a set of ColdFusion functions written for JavaScript and can be accessed as $.funcName();

There are no comments for this entry.

Add Comment Subscribe to Comments

1/29/07 11:27 AM # Sez Javier Julio

Just to let you know if you need a bigger library of CF functions in JavaScript, Randy at LeftCorner has a great setup that I highly recommend. The download is available at:

http://www.leftcorner.com/index.cfm?Article=JavaSc...


3/7/07 2:16 PM # Sez Shlomy Gantz

Wrote a Library called CFMLjsLibrary a few years back that contains 80% of coldFusion fucntions. If you want I can look for it and FWD it to you.


3/7/07 4:29 PM # Sez Javier Julio

Shlomy I'd be very interested in that library. If its not any trouble for you please let me know if you come across it.


3/7/07 4:39 PM # Sez Dan Wilson

@Shlomy
I've added a link to your library. Thanks for making this available to the community.

@Javier
I've added the link to Shlomy's library as well as the library at LeftCorner you pointed out.


3/7/07 4:42 PM # Sez Javier Julio

Awesome, thanks guys. Bookmarked. :)


4/16/07 6:04 PM # Sez Christopher Jordan

I just want to say that my library (cfjs for jQuery) was built upon Randy's library from LeftCorner. If you read the comments section of my library (the unpacked version of course), you'll see evidence of this. I didn't want to take credit for work that wasn't mine. But I have fixed several bugs and have added several new functions that weren't originally in Randy's.

I emailed Randy before I published CFJS for jQuery, with the bug fixes and additions. I'm grateful for the work he put in. :o)

You can sign up to receive updates on my library (which will also be available in a non-jQuery-ized flavor) over at cfjs.riaforge.org. I'll keep all updates in the SVN repository over there.

@Sholmy
Dude! 80% I'm gonna have to have a look at that and see what functions I might be missing. If I need to I'll contact you for permission to include them in my jQuery plugin. :o)


Add Comment Subscribe to Comments