Thursday, June 28, 2007

Did AJAX At Work Now?

Original >>

I think it's very simple and useful short script. Jquery + CakePHP or any PHP page.

It's a AJAX Global Activity code:

$(function() {
var $headline = $('h1:first');
$(document).ajaxSend(function() {
$headline
.removeClass('activity')
.addClass('activity');
});
$(document).ajaxStop(function() {
$headline.removeClass('activity')
});
});

So. When ANY AJAX activity - your 'activity'-class will be work;-) Easy ;-)

Sunday, June 24, 2007

Ajax/jquery

So, I want to ask you about one thing:

Did you interesting about: How To Use JQuery into your CakePHP project?

I wrote some articles (in russian), but if you have interest, I can translate it into english.

Please write in comments, if it's interesting for you.