Entries Tagged as "cfml"

Bad html to Xhtml. The Railo way.

I have worked quite hard in the last period with an interesting xhtmlrendering java library called "flying saucer" ( I will post more about that in the next future).

This library takes a valid xhtml string and is capable to convert it into a pdf ( and more formats ) document. What makes this lib special is the ability to format the output using css 2 and 3 stataments. And I could not imagine ahow many things css 2 and 3 is capable of....

Read more...

2 Comments

ColdBox Book Released

I am a big coldbox fan and I am very glad to post about the release of the ColdBox Book. I am ordering a copy for me and, if you are serious about coldbox, I strongly recomend it.

Coldbox has always been very well documented and the book will surely be an interesting way to go deeply into coldbox framework.

Thanks to Luis for the hard job.

No Comments

Railo Ajax 0.5.1.4

This version of RailoAjax starts the support of functions not strictly related to a tag or to a UI object like tabs or windows.

Firsts functions to be supported are:

Railo.Ajax.submitForm
(formId,url,callbackhandler[,errorhandler,httpMethod,asynch,returnFormat,beforeSend])

You can use this fucntions to ask a form to be ajax submitted at any time with no need to trigger the submit event.

Railo.Ajax.ajaxForm
(formId[,target,callbackhandler,errorhandler,returnFormat,beforeSend])

This function is used to configure a form to be submitted in ajax mode. The main difference with the previous one is that in this case the form will be submitted in ajax mode in any case, and not only when invoked by the function itself.

Railo.Ajax.navigate is on development stage.

7 Comments

RailoAjax core is jquery free.

To make library lighter, especially for core usage, I have removed the jQuery dependency from the core RailoAjax library. What does this mean ??

Core tags like cfajacproxy or cfdiv do not use any UI lib and they rely on the lonely RailoAjax library. Up to version 0.5.1 some task like binding and xhr calls where made with the jQuery help and we were forced to load jQuery in any page.

From version 0.5.1.1 ( already available ) RailoAjax is free from jquery dependency:

XHR

You can now use RailoAjax as a XHR utility:

var x = new Railo.XHR() ;
x.request({
url : url,
success:....
});

DOM Events

Dom event binding can be added like this:

]Railo.Util.addEvent(dom element, event, callback );

Btw I decide to keep one dependency in RailoAjax that is Sizzle.js.

Sizzle is the most powerfull selector engine out there. Sizzle is fast, flexible and come from jQuery core.

Check out docs if you like.

You can use sizzle just as you were used to use jQuery selector:

var element = Sizzle('#myId');

Of course Sizzle return array of dom elements and not jQuery Objects.

No Comments

Railo Ajax 0.5.1

RailoAjax 0.5.1 has been released.

This update added the initial support for cflayout and in particular for the tab type. Over the cf8 compatibility I am trying to add more things like e deeper callback support and some extra functionalities from tje jquery UI library.

You can update from Railo Admin ( if you already installed the extension ) or install from these 2 extensions providers:

http://www.andreacfm.com/railoEx/andreacfm.cfc
or
http://preview.getrailo.org/ExtensionProvider.cfc ( this will be
updated tomorrow - monday 14 during the day).

Let me have your feedback and wishlist for the next project ehhancement.

 

No Comments