Wednesday, January 3rd, 2007

ExpressionEngine Ajax Resources

Category: Articles, PHP

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

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.

Posted by Dion Almaer at 8:42 am
1 Comment

++++-
4 rating from 32 votes

1 Comment »

Comments feed TrackBack URI

It’s very beautifully.

Comment by Mike — August 17, 2007

Leave a comment

You must be logged in to post a comment.