Custom JavaScript Trigger Functions for Google Tag Manager

In this post we’ll go through how to fire events for the Google Tag Manager with custom JavaScript functions. Most tracking can be done just by using the built in Google Tag Manager tracking, but for developers that want to debug or need events to be recorded on very specific occasions that can not be implemented with the default functionality, JavaScript is the way to go.

Continue reading “Custom JavaScript Trigger Functions for Google Tag Manager”

history.pushState and IE SCRIPT5022: SecurityError

I stumbled upon this error in Internet Explorer when I wrote my Redirect Checker and discovered that JavaScript Errors that imply an attempted security violation, that on top of that are not wrapped in a try-catch block, will totally disable your whole script execution.

I had code that looked something like this:

Continue reading “history.pushState and IE SCRIPT5022: SecurityError”

Example: JSON Web Tokens with Vanilla JavaScript

In this post we’re going to learn how to use JSON web tokens on the frontend with vanilla JavaScript and no libraries necessary. What you learn will be easily applicable to frameworks such as Angular, Angular2, Vue.js or similar.

In the last post we had a look at how to create an express app with jwt authentication.

Why No Framework?

I wanted to write a post simply illustrating how everything works and how easily this can be achieved without any frameworks in place. It’s just another layer of abstraction you have to learn if you’re just trying to build some sort of login for your web app.

Continue reading “Example: JSON Web Tokens with Vanilla JavaScript”

On: Too many Frameworks and if you should use one

Web and especially JavaScript frameworks exist quite numerously, but there is also a great deal of controversy about if it’s too many, who should be using a framework, who should be building one and of course the obligatory

The framework I’m using is superior to yours!

discussions en masse.

I just want to give a quick overview of what I think of the matter, because many people have some good points, but my TLDR; version would be: do whatever you want, but don’t tell other people what they should do.

Continue reading “On: Too many Frameworks and if you should use one”

Trying out the Facebook Flux Examples

If you want to try out the flux examples in your browser and learn from them, you’ll need to do a quick little bit of building the respective JavaScript file from the sources you are provided.

For starters, you’ll need to clone the github repository by running:

Continue reading “Trying out the Facebook Flux Examples”

Best Free Source Code Editors for e.g.: HTML, CSS, JavaScript

This is a list of the best free source code editors, especially for web programming, for example for JavaScript, HTML or CSS, with some useful indications about features, difficulty and which platforms they are available for. If you’re looking to find the best fit for you, keep reading. This list is full of beginner friendly editors that also can be customized to fit your coding needs, no matter if it’s for HTML, CSS, JavaScript, Ruby, Python or PHP.

Continue reading “Best Free Source Code Editors for e.g.: HTML, CSS, JavaScript”

Best JavaScript MVC Frameworks 2013-2014

JavaScript MVC Frameworks are a big topic nowadays that we use JS to bind data, send it back and forth between server and client and actually implement lots of logic, so we want to structure our code after the MVC or similar patterns, decoupling the logic or data handling from the views. In this article I want to share what frameworks I’ve tried out and which ones I find interesting. Continue reading “Best JavaScript MVC Frameworks 2013-2014”

jsnews.de – German JavaScript blog

UPDATE: I have closed down jsnews.de, but I’m still writing about JavaScript in German on my other other German Blog: http://vollzeitblogger.de/tag/javascript/

I’ve just launched jsnews.de, which is JavaScript blag in German. I’m hoping to contribute to the German node.js and JavaScript community through fast news and comprehensive tutorials. Looking for a good resource in German, I didn’t find a lot of frequently updated pages, so I made one. Continue reading “jsnews.de – German JavaScript blog”