About me

Michael L Perry

Improving Enterprises

Principal Consultant

@michaellperry

User login

KnockoutJS No Modification Allowed Error in Chrome

Test your KnockoutJS binding in all major browsers. If it just doesn’t appear to work, start the debugging console for that browser. Usually, this is F12.

I had a page that worked in IE. In Chrome, I saw “Uncaught Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7” in the console. Knockout was deep inside of ApplyBindings, but I couldn’t tell what the binding was. But by switching to the debug (non-minified) script, I was able to back up the stack a couple of calls to find that Knockout was trying to bind the “text” property on an input element.

There was my problem. I had:

<input type="text" data-bind="text: date" />

I needed to data bind “value”, not “text”.



Thanks

Thanks for posting this, I made this silly mistake as well. I would have spent hours hunting it down if you didn't take the time to post this.

Thanks again