Posts

Meteor - Quick Tips #1

Redirecting for Non-Logged-In Users

When an app has more than one URL and any other URL other than the /home URL is restricted for logged-in users, than this requireLogin function will direct users back to the home URL when the user is not logged in. This is assuming that the IronRouter package is used.

Categories: #JavaScript
Tags: #Meteorjs
Validating Numbers

Is the content intended to be a number?

When dealing with validations in input forms, one occasionally has to determine if the content entered is actually a number. However, the input content will always be string when performing a check on an input.

Categories: #JavaScript
Tags: #jQuery
WordPress Quick Tips #1

Enqueue Multiple Google Fonts into One Stylesheet

Taking the twenty-fourteen theme for example, modify the 'functions.php' by separate the different fonts that is to be used with a pipe character in the twentyfourteen_font_url function.

Categories: #CMS
Tags: #WordPress
Simple Validator

Simply Validating

Validation conjures up thoughts of input form validation, but validation could also pop up elsewhere when there is user input such as the case for parameters in jQuery plugins.

Categories: #JavaScript