
<?php var Edicra; if (!Edicra) Edicra = {}; Edicra.TabbedPanel = function(element, tabId) { this.startingTab = tabId; this.currentTab = this.startingTab; this.element2 = document.getElementById(element); allChildren = this.getElementChildren(this.element2); this.tabs = this.getElementChildren(allChildren[0]); this.panels = this.getElementChildren(allChildren[1]); for (var i in this.tabs) { if (i == this.startingTab) { this.tabs[i].className = 'selected'; } else { if (i == this.currentTab) { this.panels[i].style.display = 'block'; } else { this.panels[i].style.display = 'none'; } } } } (..) Edicra.TabbedPanel.prototype.getElementChildren = function(element) { var children = []; var child = element.firstChild; while (child) { if (child.nodeType == 1 /* Node.ELEMENT_NODE */) children.push(child); child = child.nextSibling; } return children; }; ?>
Przeglądarka wyświetla bład: this.tabs[i] is not an object. Po wuunięciu mootoolsa wszystko działa OK. Moze ktoś się z czymś takim spotkał. Błagam o pomoc.