alanwilliamson

CFJS - Server side Javascript available for playing

As promised, I have packaged up the new javascript plugin for use with OpenBD and you can now download and start playing.

I am personally very excited about this step forward. I always believed that CFML is the best web scripting language out there on the market and when people see how easy it is to do certain things, they are hooked. Coupled with the fact CFML has broken free of it available-only-as-a-commercial-product ties there is a whole new wave of people checking the power out.

So mixing Javascript in as a first-class language to this platform creates a very powerful tool to which non-CFML developers can now crank out dynamic websites without needing to learn a single line of CFML.

Solutions such as Jaxer are pretty neat, but relies on too much of a language shift to actually get anything useful from it. To do anything of real meat, you have to scramble down their Javascript API, which while extensive, is not standard. Why reinvent the wheel, when you have such a wonderful library of CFML functions that have been around in some cases for over 10 years?

But OpenBD.JavaScript brings more than just a library of functions. There is the whole underlying CFML platform that comes along free-of-charge without the Javascript having to worry about session management, application management, database pooling, caching, web services and templating to name some of the highlights.

By wrapping a single page in CFJS tags, you will be able to write a whole website in Javascript alone, without dropping to a single line of CFML code. I am presently debating whether or not to have a new extension, *.cfjs, that lets you code the whole page in pure-raw Javascript without any CFML tag wrapper at all.

The journey has just started and we have a way to go yet, but at the moment, the initial alpha release packs a lot of punch into what seems just another tag added to CFML. Please let me know your feedback on the OpenBD mailing list and together we can make this into a killer platform that appeals to Javascript developers.

Download
From the main OpenBlueDragon website

Overview
http://wiki.openbluedragon.org/wiki/index.php/CFJS

Update

I have since added support for calling out to CFC's from within Javascript blocks. Also check out the Wiki article referenced above to see how easy and quick it is to embed Java code within the CFJS tag.

Comments

Yes tears of joy, couldn't be happier. I will get to work on the cfjs.org site soon :)

left by Marcel Bennett — Tuesday, 1 December 2009 10:01 PM — web site

@Marcel - great to hear you have tears of joy in your eyes, or at least I hope they are tears of joy!

As for the cfjs.org domain, absolutely, anything you want from us then let us know.

Be sure to join the OpenBD mailing list.

left by Alan Williamson — Tuesday, 1 December 2009 9:02 AM

@Alan Please read my first comment on your previous CFJS post first :)

I vote for the cfjs extension at least for a single Application.cfjs file, I don't think having Application.js is good given then users could download it and you may want it to link to a private model directory.

This is so great to see it almost brings a tear to the eye, I have wanted this for soooooo long and just don't know enough about Java servers to do it. Was only after cf.Objective(ANZ) I got to talk to Mark Drew about Railo and I had the thought I should teach myself and then hack it into that if no one else could see how much I feel it will expand the global interest in CF, to be able to use e4x for templating, jQuery for server side DOM manipulation, oh my!

I think John Resig would be quite happy to see a server that can run jQuery and have real power behind it, he may even make a comment in his blog when there's a version 1 which would really broadcast it to the wider JavaScript community.

Please let me know if you would like to collaborate on setting up the cfjs.org domain and things like extensions and classes we could put there :)

left by Marcel Bennett — Tuesday, 1 December 2009 7:59 AM — web site

Leave Comment

please note, all comments will be moderated for spam and abuse before being publicly posted.


 

Recent Cloud posts

Recent JAVA posts

Latest CFML posts


 
Site Links
Recommended Sites/Blogs

Follow javachampion on Twitter