I love developing usable and rich web applications using the latest techniques available.
Check out my projects or portfolio to see what keeps me busy.

SoapSource added into the Cakephp datasources repository

Today my Soap datasource has been added into the Cakephp datasources repository by Graham Weldon.
Great to see my work got accepted.

02/03/2010 at 3:02 pm — Comments (0)

Fixed (sticky) toolbars with jQuery

Here’s a little snippet of code that let’s you create sticky toolbars like they use in Magento for example :)

Include this in your js somewhere and then just call $(‘.toolbar’).fixed();

$.fn.fixed = function() {
    return this.each(function() {
        var header = $(this);
        var offset = header.offset();
        var floater = $('<div></div>').append(header.clone(true));
        floater.hide().appendTo(document.body).addClass('floating-toolbar');

        $(window).scroll(function() {
            var s = $(this).scrollTop();

            if (s > offset.top) {
                header.css('visibility', 'hidden');
                floater.show();
            } else {
                floater.hide();
                header.css('visibility', 'visible');
            }
        });
    });
};

And here’s some css to make it work.

.floating-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.85;
}
19/01/2010 at 5:16 pm — Comments (0)

Older posts Subscribe to RSS

Book review: CakePHP Application Development

11/03/2009

GIT: ignoring changes in tracked files

29/01/2009

SoapSource, a SOAP Client Datasource for CakePHP

18/12/2008

Installing PHP5 soap extension on Leopard 10.5.5

17/12/2008

Cakephp router and prefixes

04/12/2008

MenuHelper renamed to NavigationHelper

27/11/2008