/    Sign up×
Community /Pin to ProfileBookmark

cooltree, some errors

I’m using the cooltree script from hotscripts, I’ve got it in one frame at it should work but as soon as the page loads I get the error symbol in my IE browser (left corner, down) and when I click on it, it saids that var tree1 is null or not an object.
For me everything seems to be right.

If you want the cooltree code I can send it to you.

Here you have the code on web site:

[CODE]
<?
include “../lib/sesion.php”;
require_once “../lib/lib.php”;
include “../css/cssi.php”;
?>
<html>
<head>
<title>menu</title>
<link rel=”stylesheet” type=”text/css” href=”../css/tree_styles.css” />
<script type=”text/javascript” src=”../js/cooltree.js”></script>
<script type=”text/javascript” src=”../js/tree_format.js”></script>
<script type=”text/javascript” src=”../js/tree_nodes<? if ( $tipo==”provider” ) echo “b”; ?>.php”></script>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″></head>

<body bgcolor=”#FFFFCC” leftmargin=”4″ topmargin=”4″ marginwidth=”4″ marginheight=”4″ >
<table width=”0%” border=”0″ cellspacing=”2″ cellpadding=”0″>
<tr>
<td><img src=”../images/flecha.gif” width=”14″ height=”14″></td>
<td><img src=”../images/nada.gif” width=”15″ height=”14″><a href=”javascript:void(parent.mainFrame.location.href=’../index/main.php?familia=’);window.location.href=’../index/iz.php’;” >Acceso por familias </a></td>
</tr>
<tr>
<td><img src=”../images/flecha.gif” width=”14″ height=”14″></td>
<td><img src=”../images/nada.gif” width=”15″ height=”14″><a href=”javascript:void(parent.mainFrame.location.href=’../index/main.php?proveedor=’);window.location.href=’../index/iz.php?tipo=proveedor’;” >Acceso por proveedor</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>

[COLOR=Red]<script>var tree1 = new COOLjsTree(“tree1”, TREE_NODES, TREE_FORMAT);</script>
<script type=”text/javascript”>
//tree1.expandAll();
tree1.draw();
</script>[/COLOR]
</body>
</html>
[/CODE]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Perfidus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...