Auto-complete Lists in HTML5
Jquery is everywhere, its good. People like it. Its easy(ish) for beginners to create great web apps. It’s also large, and a burden if you don’t really need it. There…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
Jquery is everywhere, its good. People like it. Its easy(ish) for beginners to create great web apps. It’s also large, and a burden if you don’t really need it. There…
I wrote a site for my local pub and it involved a restaurant booking section. The user could select a date and a time (plus name, phone number and number…
I wanted to pass a simple key/value string to an Ajax request, but you cannot simply use the variable as the key in the data: var $fieldname = 'company_name'; var…
I often have the problem that the autosuggest isn’t flexible enough, and I need to show contact name AND client name in the drop down Here is a way you…
I needed a custom sort column for jquery tablesorter (http://tablesorter.com/docs/) for dates in the format of 12-Aug-2013 as the default tried to sort it as a string Was quite complicated…
wkhtmltopdf has a bug as a result of a webkit bug. This means that the nice css styles for table printing don’t work in wkhtmltopdf. Fortunately for us, wkhtmltopdf can…
If you need to use :contains() as a selector but need a case insensitive one, you need to extend jQuery yourself: This function will do it: $.extend($.expr, { 'containsi': function(element,…
Simple one. $(document).on('#element', 'keyup', function(event) { if (event.keyCode == 13) { event.preventDefault(); //do some other stuff } }); This doesn’t actually work as the Key Up event is too late…
So you want a little funky AJAX loader? Add this to your JS main core file…: $(document).ready(function() { //initiate an ajax start message $(document).ajaxStart(function() { //show the message $('#ajax_loading_indicator').show(); });…
If you use the above to show a nice loading message when an AJAX call is performed, you may have come across the problem that a JSONP request means the…