Entries Tagged as "javascript"

Templating in jQuery with jTemplates

I am working in these days on the front side of an application that need to manage a huge amount of data pushed in JSON format.

These datas are not needed to be analyzed or filtered.

What I  need is to be able to display info ( coming in a unique set of data )  in many different part of the page using quite complex html generated by many conditional statements. Of course I need to be able to refresh the different areas individually.

I have used in the past spry or ext in these case but I always considered both oversized for this job, at the end the dataset has not to be manipulated.

I have then found a very powerfull solutions in jTemplates. This is a wonderfull templating tool that can be used as jquery plugin or in plain js. Between the features available :

  • conditional statements
  • looping
  • parameters
  • nested templates

Performance are very good. Have a try I really recommend this.

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

Jquery Ui 1.7

jqueryHas been released today version 1.7 of jquery UI library. I  have never used it so much but from this realease i think that UI becomes a valid options.

In my opinion the library has a big lack that is the fact that looks like the jquery team is not interested in developing also a data management tool to be use with the UI widgets but .... we can mix it with spry dataset or extjs stores.

Some of the biggest news from the jquery blog:

Read more...

1 Comment