Hi there,
"One step at a time" and "divide and conquer" is my motto, but to be honest it is not easy. I am trying to find out why my Yahootreemenu with ajax does not work with Zen Cart 1.3.7.1.
In recent posts I already got some really good tips. The menu still does not render properly on http://www.natasjadeleeuwe.eu/ but the warnings are gone and I can log into the system again. The menu does not open/collapse though.
I looked into the source code of the page and I found out that
1.) The css file and the javascript file are not in the head of the xhtml file
Does anyone know how I can get the .css file and the .javascript files into the haead of my html document (where they belong)?
2.) The javascript does not hold my products, (I have not categories yet, only products) but it does not show any products. No wonder that the menu does not open when I click on it. It has not children.
Does anyone know if the Yahootreemenu with ajax has maybe conflicts with other zencart modules or does not work with Zen Cart 1.3.7.1. yet?
Or does anyone know why I I have to configure some extra things in the admin GUI of zencart in order to get the menu to work properly?
I put the source (html) code of the menu at the bottom of this thread:
Cheers,
Stinie
<!--// bof: yahootreemenu //-->
<div class="leftBoxContainer" id="yahootreemenu" style="width: 150px">
<h3 class="leftBoxHeading" id="yahootreemenuHeading">YahooMenu</h3>
<div id="yahootreemenuContent" class="sideBoxContent">
<link rel="stylesheet" type="text/css" href="includes/templates/template_default/css/tree.css">
<script type="text/javascript" src="includes/templates/template_default/jscript/YAHOO.js"></script>
<script type="text/javascript" src="includes/templates/template_default/jscript/treeview.js"></script>
<script type="text/javascript" src="includes/templates/template_default/jscript/loadNodes.js"></script>
<script type="text/javascript">
var tree;
var nodes = new Array();
var nodeIndex =0;
var root;
var tmpNode;
function treeInit() {
tree = new YAHOO.widget.TreeView("yahootreemenuContent");
root = tree.getRoot();
loadTree();
tree.draw();
}
function loadTree() {
}
function loadDataForNode(node, onCompleteCallback) {
var request = "load_branch.php?cPath=" + node.data.id;
makeRequest(request, node, onCompleteCallback);
}
treeInit();
</script>
<noscript>
</noscript>
<hr id="catBoxDivider" />
<a class="category-links" href="http://www.natasjadeleeuwe.eu/index.php?main_page=products_new">New Products ...</a><br />
<a class="category-links" href="http://www.natasjadeleeuwe.eu/index.php?main_page=products_all">All Products ...</a></div>
</div>
<!--// eof: yahootreemenu //-->