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…
Annoying to find, so a quick easy to find snippet here <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>New Page</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="description" content="Newescription" />…
If you ever wanted to prevent certain IP addresses from accessing your site, you can easily acheive this in the .htaccess file. Simply list the IP addresses and then redirect…
Say you are using Google Web fonts for some CSS. Well, if you don’t include the correct bits you may encounter this problem. Say, you use the Ubuntu font, for…
Had some CSS that worked in Chrome, but not Firefox or Opera. Firebug reported this: Turns out, that my media atributes were incorrect, media="screen print" will not work in FF…
I’ve seen a few methods of this using over-elaborate JavaScript, when its really not necessary. All you need to do is wrap the <input with a <label – as a…
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 are trying to add a ‘total’ or a report footer and its getting split over the penultimate and final page, then just add this css to the element…
Say you want to position something within its container, then the element you are trying to position needs to have: position: absolute; But the parent container can simply have: position:…