When bind view model attribute to a input textbox, it crashes in IE-Collection of common programming errors
Assuming that you are getting some results back of type Stakeholder and storing them in searchResults –
Name | Org Name |
Works in IE8. But since your searchResults is a KO.observableArray() I assume that you need to foreach your searchResults, but without a better picture of what you are doing it’s hard to tell, here that is anyway.
Name | Org Name |
I also can’t tell what orgName is or how it is being passed to the constructor of the Stakeholder, if it is a KO.observable then remove it as a parameter and use orgName(), if it is a parameter being passed in then move it up to the parent function and rename it to ensure it isn’t a circular reference.
var Stakeholder = (function (organizationName) {
var self = this;
function Stakeholder() {
this.orgName = ko.observable(self.organizationName);
};
return Stakeholder;
})();
Last, not sure what the ‘blah’ element is at the bottom, maybe just a copy pasta typo?