TinyMCE is a rich-text editor that helps convert the HTML textarea element into a WYSIWYG editor. While working with it recently, I noticed that it doesn’t work well with AJAX out of the box. This article explains the problem and provides a solution.
JavaScript
IP Address Lookup Tool [With Full Source Code]
Use this IP address lookup tool to find detailed information and geolocation of any IP address. Besides being a functional IP lookup tool, this page also provides the full source code for the tool. To lookup an IP, just type it in and press submit.
Online Word Counter [With Full Source Code]
This page contains everything you need to perform (and understand) word and character counting: A fully functional word counter, detailed explanation of the code powering it, and a dump of the entire HTML, CSS, and JavaScript code that the tool uses.
Auto-Check MailPoet “Subscribe In Comments” Box
MailPoet comes with a “subscribe in comments” option that allows visitors who comment on a post to subscribe to your list via a checkbox. But this box is unchecked by default. With this jQuery snippet, you can have the box auto-checked on page load.
Pure JavaScript Alternatives To jQuery’s ready() Function
jQuery provides a handy .ready() function for testing whether the DOM is ready to execute some code. But what if you’re working with plain old JavaScript and don’t want to use jQuery? This article discusses 3 pure JavaScript alternatives.
Working With AJAX In WordPress
AJAX has become THE way to build user friendly and dynamic websites. With AJAX, you can update the contents of a page without doing a full page reload. Most websites need this behavior. Read this post to learn how to implement AJAX on WordPress sites.