Follow @endyourif rss Facebook LinkedIn

Knockout - Uncaught ReferenceError: Unable to process binding

Published on Jan 31, 2020

If you've used Knockout.js in your project, at some point or another you've probably encountered the following error "Uncaught ReferenceError: Unable to process binding". The most likely cause is a typo somewhere or forgetting to change the context. E.g. you are within a foreach binding and forget to use $parent.

I recently encountered this issue and could not find the typo anywhere. Like most developers in my situation I was getting really frustrated, banging my head against the world looking for answers. Luckily I was able to use this Knockout.js tutorial to narrow down and solve my problem.

Unfortunately, there is no easy answer to this bug; however, I can suggest an excellent technique that will hopefully help point you in the right direction.

Here is a complete example that creates a table and displays a list of books within the table. There is an unfortunate typo within one of the td data bindings.

Include a JavaScript file in another file

Published on Jan 28, 2020

Including a JavaScript file into another file is a very nice thing to be able to do. It's something you probably do with almost every other language; it helps keeping files smaller, more readable, and of course, more readable. There are multiple ways to accomplish this and I'll let you pick the one that works best for you.

Why you should use strict with JavaScript

Published on Jan 24, 2020

Many people "dislike" JavaScript for reasons that I cannot understand. I like it and it serves a purpose. JavaScript can be a very forgiving language. By that I mean it let's you get a way with things that other languages, that are a little stricter, would not. This is where the "use strict" comes into play.

Using a forEach loop with JavaScript

Published on Apr 7, 2019

I honestly feel like I've been living in the stone age. For years I've always used a standard for loop when iterating a JavaScript array accessing the property with the index of my for loop. No longer, it's time to upgrade (my brain) and use the forEach loop.

Difference between location.href and location.replace

Published on Feb 9, 2018

It's quite common to redirect a user visiting your webpage, more specifically when they perform an action, such as: clicking a button. When the user completes the action and you want to redirect the user to somewhere else, you have two common choices:

window.location.href = '';



OR

window.location.replace('');



Retrieving query string variables with JavaScript

Published on Feb 8, 2018

Zero Padding a Number with JavaScript

Published on Feb 7, 2018

Javascript, the Back Button, and Windows Phone 8 Development

Published on Feb 18, 2013

JavaScript: Easy Creation of Countdown Timers

Published on Aug 28, 2012

Maintaining the back button with AJAX

Published on Dec 28, 2010

Facebook Development - Quick and Easy Dialogs

Published on Jun 10, 2009

Drag and drop with animations in jquery

Published on Mar 10, 2009

Fixing slow drag and drop with scriptaculous

Published on Feb 18, 2009

Drag and Drop with AJAX Example

Published on Feb 14, 2009

YSlow - Helping slow web pages load faster

Published on Feb 11, 2009

Firebug - A developer's best friend

Published on Feb 11, 2009