All posts tagged with 'JavaScript'

How to fix jQuery UIs autocomplete width


I recently noticed that the combobox item on an jQuery UI autocomplete grows way beyond the textfield input which is kinda ugly. This is how i fix it (that is, make it as width as the input item): $.extend($.ui.autocomplete.prototype.options, { open: function(event, ui) { $(this).autocomplete("widget").css({ "width": ($(this).width() + "px") }); } }); This code applies […]

Read the complete article »

Add touch support to jQuery FancyBox 1.3.4


I’m using jQuery FancyBox on I still use version 1.3.4 which is released under MIT and GPL license, if i remember correctly version 2 has not been always available under an open license but i’m maybe wrong. But nevertheless, version 2 also lacks touch support like 1.3.4 does. This can be changed if you’re […]

Read the complete article »

Optimizing web resources with wro4j, Spring and ehcache


I think that almost no website today can do without JavaScript. There are some incredible good JavaScript libraries like jQuery for which an enormous mass of plugins and extensions exits. The downside of this is, that for example the JavaScript code of my daily picture project Daily Fratze is bigger than the whole startpage of […]

Read the complete article »

Server push, jquery atmosphere and the throbber of doom


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 »