ExpressionEngine Ajax Resources

Written by on January 3rd, 2007 in Ajax News.

Jamie Pittock has launched a new ExpressionEngine site and has a couple of articles covering the building of Ajax applications using the PHP framework.

In ExpressionEngine and Ajax Jamie covers adding some simple features to an ExpressionEngine application using the Prototype framework and Behaviour.

JAVASCRIPT:

  1.  
  2. var myrules = {
  3. ‘ul#thumbs li a’ : function(el){
  4.         el.onclick = function(){
  5.     var title = this.id
  6.     new Ajax.Updater(’featured’, ‘/gallery/_gallery-ajax/’+title, {
  7.         asynchronous:true,
  8.         evalScripts:true,
  9.         onComplete:function(request, json){
  10.             Element.hide(’indicator’)
  11.         },
  12.         onLoading:function(request, json){
  13.             Element.show(’indicator’)
  14.         }
  15.     });
  16.     return false;
  17.     }
  18. }
  19. };
  20. Behaviour.register(myrules);
  21.  

Jamie also put together a proof of concept for the good ole To Do List application, all within the time it took his girlfriend to get ready for a night on the town.

Source: Ajaxian
Original Article: http://ajaxian.com/archives/expressionengine-ajax-resources

Leave a Reply

You must be logged in to post a comment.



Site Navigation