Simple .debounce function
Used for delaying keypress searches, etc Usage example: Above will request /api/search endpoint 300ms after last keyup event
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
Used for delaying keypress searches, etc Usage example: Above will request /api/search endpoint 300ms after last keyup event
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…
We’ve been using a bit of a google doc recently for logging stuff, and sometimes cells get missed. I wanted to just test out a bit of google doc and…
I recently had to create a site for an education facility, and they turn on Compatibility mode for all their networked PCs, for legacy support. This was messing around with…
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…
Quite often I have to convert datasets from one source to another target. Sometimes I can only export them as CSV to investigate the field order/column structure Then, once I…
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 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…
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…