Phil Brown's Web Development Blog

Entries for the ‘JavaScript’ Category

Base64 encoded SVG gradient backgrounds in LESS

So, CSS3 gradients are cool. Sure, you need to use a couple of different vendor prefixes but the syntax is pretty nice .my-gradient { background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b7ea), color-stop(100%,#009ec3)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #00b7ea 0%,#009ec3 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #00b7ea […]

Awesome Pagination with ZF, Paginator, AjaxContext and the HTML5 History API

One of my favourite components in Zend Framework is the AjaxContext action helper. This little beauty allows you to intercept AJAX requests and deliver a different view based on request parameters, all without touching a single line of action code. One scenario where this has always appealed to me is in paginating data. Why reload […]

jQuery AJAX Autocomplete with JSON data

I recently had a requirement to implement an auto-complete input box in a dynamic form. Since I was already using jQuery, I had a look at the available plugins. After sorting through a few, I decided on this one from Jörn Zaefferer. The only problem was, I wanted to use the wonderfully simple Zend Framework […]