Posting Slack message on Google Docs spreadsheet cell update
We’ve been using a bit of a google doc recently for logging stuff, and sometimes cells get missed. I wanted…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
We’ve been using a bit of a google doc recently for logging stuff, and sometimes cells get missed. I wanted…
I recently had to create a site for an education facility, and they turn on Compatibility mode for all their networked…
Simple one. $(document).on('#element', 'keyup', function(event) { if (event.keyCode == 13) { event.preventDefault(); //do some other stuff } }); This doesn’t…
So you want a little funky AJAX loader? Add this to your JS main core file…: $(document).ready(function() { //initiate an…
Okay, so have you ever had a user call you up and say “the website is putting garbage into my…
I always end up leaving debug code in my pages for one reason or another. One of which is console.log()…
Sometimes you want to pass a function around from script to script as a string containing the function name (well…
When using JavaScript, you declare a variable using the var keyword. var myvariable = "a value"; These variables are globally…
If like myself, you often attach functions to elements using jQuery, for example: $('.btnName').live('click', function() { //do something }); There…
We all have to bind events to elements: $('#link).click(function(){ do some stuff }); But, what if that element doesn’t…