All posts tagged with 'jQuery'

Twitter Bootstrap: Make the default pills more usable

30-Jul-12

The default basic pills from Bootstrap are somewhat useless as they don’t change their state (class=”active”). I use the following javascript snippet to change that: $(’ul.nav.nav-pills li a’).click(function() { $(this).parent().addClass(’active’).siblings().removeClass(’active’); });$(‘ul.nav.nav-pills li a’).click(function() { $(this).parent().addClass(‘active’).siblings().removeClass(‘active’); });

Read the complete article »

Server push, jquery atmosphere and the throbber of doom

03-Feb-11

I’m using the Atmosphere framework to implement server push (a.k.a. Comet) in a Spring 3 application. Atmosphere includes a fine jQuery plugin to handle the client side code. The plugin works quite well and Jean-Francois, the author, has a good tutorial in his blog: Using Atmosphere’s JQuery Plug In to build applications supporting both Websocket […]

Read the complete article »