-
Recursion and How to Get All the records from a paginated API
I was recently working with an API that limited the max number of items it let you call at once. This was frustrating, because I needed everything. The solution, thankfully was recursion. Recursion is really fun when you get to use it. I needed to use this solution in both JavaScript and Python, so I…
-
How to see if a class was added to an element using JavaScript
If you need to see if a class has been added to an element the easiest way is to trigger a new event when you add the class. The problem with this solution is what happens if you do not have control over the function where this happens. Like if it happens in the WordPress…
-
How to use JSONP (AJAX to SSL) in WordPress, an EASIER way
I’ve already written about How to use JSONP in WordPress Development. I explain how it works, and why you would use it there. At work we work with several domains and I’ve had to use quite a bit of JSONP, I’ve rethought how to use it, and made this micro-framework to make it a LOT…
-
How to use JSONP in WordPress Development. The Quick-and-Dirty QuickStart Guide
Edit: Looking for an easier way to do JSONP in WordPress? What IS JSONP and why should I care? There’s been a lot of debate lately about whether to move your site to SLL (https) or not. It’s clear, though, that all your forms, at least the ones that handle sensitive data like logins, should…
-
Form Input “Placeholder” Attribute Polyfill
This is a jQuery-dependent polyfill for the placeholder input attribute. If you’re relying on “placeholder” pop this code in your page and you don’t have to let IE users hanging in the breeze.
-
No More Passwords* – Log into WordPress using a QR Code
A short while ago I stumbled upon an interesting Hacker News conversation… Intrigued by the challenge, I decided to implement the theory as a WordPress plugin for all to use. So here’s the gory details… The Flow User visits Login page Login page Generates unique hash, saves hash to the database Login page Creates QR…