I should know what the following code does as I have a problem from the custom configuration selector + AJAX preview category list View.
var separator index = window.location.href.indexOf ('#'); If (Separator Index! = -1) {var paramsStr = window.location.href.substr (Separator Index + 1); Var urlValues = paramsStr.toQueryParams (); If (! This.values) {this.values = {}; } (UrlValues in var i) {this.values [i] = urlValues [i]; }} The error I get is the uncheck type error: the undefined property 'config' can not be read this only then When I have a hash in the URL (Layered NAV)
var separator index = window. Location.href.indexOf ('#'); // appears for index of # in URL if (Separator index! = -1) {// if # is present and index var paramsStr = window.location.href.substr (Separator Index + 1) is set; // URL get everything after urlValues = paramsStr.toQueryParams; // Conversion on key value if (! This.values) {// Do not know where it comes from? This.values = {}; } (UrlValues in var i) {this.values [i] = urlValues [i]; // fill this.values with the value from above #}}
Comments
Post a Comment