I decided to added some eye candy to my presence box leveraging the jQuery library and with the following lines of code I made the "loading presence..." text slide up and the presence text slide down:
$(function() {
$("div#presence").slideUp("slow", function() {
$(this).empty();$("div#presence").
append(obj.value.items[0].title).slideDown("slow");
}
}
I think the design of the library, using closures extensively is pretty cool. You can use it to add some ajax functionality to your application in an easy and concise way.
0 comments:
Post a Comment