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