This is an update to a previous post. In another post on this site, it was said that Dropbox Paper is the code storage of choice. This has changed. As of today, I much prefer using Microsoft’s GIT code repository…
jQuery Toggle Firing Twice
When trying to toggle an element on a page using jQuery, you might have the toggle happen multiple times. In other words, you click the event listening element (such as a link) and the element you want to toggle expands…
Script Storage
Update here: Script Storage Update Throughout my career, my scripts have been a vital piece of my work. Where I store them has changed over the years. The challenge has been in finding a repository that is reliable, searchable, accessible…
PHP and jQuery – Reduce Long String to Preview Length and Reveal Full Text OnClick
Goal: Reduce long string to specified length for end-user preview. Reveal entire string when clicked. Go back to preview when clicked again. See Example Step 1: PHP Code [code] static function ReduceStringForPreview($text,$size=100) { define($reduced,”); if(strlen($text) > $size) { $reduced .=…
JSON Returning NULL When Special Characters Exist in Result Set
Nearly 24 hours of my life lost and I just figured this out. Maybe I can save someone else some precious time. Overview of JSON (skip this if you know what JSON is) When sending information from JavaScript via AJAX…