iperez_genius
09-03-2008, 02:14 AM
1) Script Title: Simple Tree Menu
2) Script URL (on DD): dont have one yet
3) Describe problem: The folders dont open and close, also the icons dont appear correctly.
I am generating the lists with php and here is the wierdest thing.
I copy the code from the http://www.dynamicdrive.com/dynamicindex1/navigate1.htm into an html page and the script work 100%.
I run my php generation script and copy the list structure into that same file and the menu works 100% BUT in my dynamic php file the menu doesn't work properly. The icons dont appear correctly..only the list.gif
Here is the web page after the php has been compiled
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Clinic Home</title>
<script type="text/javascript" src="simpletreemenu.js">
/***********************************************
* Simple Tree Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="simpletree.css" />
</head>
<body>
My Patients<br><a href="javascript:ddtreemenu.flatten('treemenu1', 'expand')">Expand All</a> | <a href="javascript:ddtreemenu.flatten('treemenu1', 'contact')">Contact All</a>
<ul id="treemenu1" class="treeview">
<li>16078 Evelyn 16078<ul><li><a class ="unread" href="pdf/97963_test.pdf">97963 test.pdf</a></li><li><a href="pdf/97964_test2.pdf">97964 test2.pdf</a></li></ul></li><li>16710 Jeanne 16710<ul><li><a class ="unread" href="pdf/97965_test3.pdf">97965 test3.pdf</a></li></ul></li></ul>
<script type="text/javascript">
//ddtreemenu.createTree(treeid, enablepersist, opt_persist_in_days (default is 1))
ddtreemenu.createTree("treemenu1", true)
</script>
</body>
</html>
Find attached a screen shot of what the outcome looks like
you will find that the html code actually work when placed in an html page by it seems that when generated by php it doesn't...any advice?
Ilan
2) Script URL (on DD): dont have one yet
3) Describe problem: The folders dont open and close, also the icons dont appear correctly.
I am generating the lists with php and here is the wierdest thing.
I copy the code from the http://www.dynamicdrive.com/dynamicindex1/navigate1.htm into an html page and the script work 100%.
I run my php generation script and copy the list structure into that same file and the menu works 100% BUT in my dynamic php file the menu doesn't work properly. The icons dont appear correctly..only the list.gif
Here is the web page after the php has been compiled
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Clinic Home</title>
<script type="text/javascript" src="simpletreemenu.js">
/***********************************************
* Simple Tree Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="simpletree.css" />
</head>
<body>
My Patients<br><a href="javascript:ddtreemenu.flatten('treemenu1', 'expand')">Expand All</a> | <a href="javascript:ddtreemenu.flatten('treemenu1', 'contact')">Contact All</a>
<ul id="treemenu1" class="treeview">
<li>16078 Evelyn 16078<ul><li><a class ="unread" href="pdf/97963_test.pdf">97963 test.pdf</a></li><li><a href="pdf/97964_test2.pdf">97964 test2.pdf</a></li></ul></li><li>16710 Jeanne 16710<ul><li><a class ="unread" href="pdf/97965_test3.pdf">97965 test3.pdf</a></li></ul></li></ul>
<script type="text/javascript">
//ddtreemenu.createTree(treeid, enablepersist, opt_persist_in_days (default is 1))
ddtreemenu.createTree("treemenu1", true)
</script>
</body>
</html>
Find attached a screen shot of what the outcome looks like
you will find that the html code actually work when placed in an html page by it seems that when generated by php it doesn't...any advice?
Ilan