JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

COOLjsTree 2.8.4

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Fri May 12, 2006 11:33 pm    Post subject: COOLjsTree 2.8.4 Reply with quote

What's new in COOLjsTree 2.8.4 (comparing to 2.8.3):

Bug fixes:
  • drammatically decreased number of global definitions (better compatibility with other scripts)

Internals:
  • massive refactoring (we're moving towards new templating model)

Note: this is not a release version.

Free edition can be downloaded here: http://javascript.cooldev.com/files/. Standard and Professional editions can be obtained here: http://javascript.cooldev.com/update/ (registered users only).

Your comments and suggestions are welcome. Please, post them in this topic.
Back to top
mresetar



Joined: 05 Sep 2005
Posts: 4
Location: Croatia

PostPosted: Sat Jun 10, 2006 2:27 pm    Post subject: Prototype script Reply with quote

I have COOLjsTree 2.7.0 pro and when add prototype script (http://openrico.org/dist/1.1.2/prototype.js) to web page menu is no longer shown. I suspect it is because of prototype special handling of $ sign, but this is only the suspicion.

Can you confirm that new version will work with prototype script?

Thanks, Miro
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Jun 10, 2006 2:40 pm    Post subject: Reply with quote

If it work if you will include prototype.js after cooltreepro.js. Our future versions will work with prototype.js without any order requirements.
Back to top
pjamason2



Joined: 06 Oct 2006
Posts: 5

PostPosted: Mon Oct 09, 2006 11:56 pm    Post subject: Reply with quote

I'm using prototype.js after cooltreepro.js and I'm still having this problem, but I do call RedrawAllTrees() at the end of my body code. We have version 2.6.0, which was provided to us when we made our purchase recently. Will upgrading to 2.8.4 fix this, or should we wait for the future version?
Back to top
pjamason2



Joined: 06 Oct 2006
Posts: 5

PostPosted: Tue Oct 10, 2006 4:55 pm    Post subject: Reply with quote

The tree still does not work correctly (can not perform expansions) in pro 2.8.5, with prototype.js included after cooltreepro.js. It's fine if prototype.js is removed.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Jan 27, 2007 6:14 am    Post subject: Reply with quote

Please, try the latest version - 2.8.7.
Back to top
pjamason2



Joined: 06 Oct 2006
Posts: 5

PostPosted: Thu Apr 12, 2007 11:06 pm    Post subject: Reply with quote

i don't see a 2.8.7 version of cooljstree pro in the customer care center - just the 2.8.7 version of standard on the downloads page. i need pro since i'm performing relative positioning of the tree.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Fri Apr 13, 2007 2:55 pm    Post subject: Reply with quote

Please, try one more time.
Back to top
pjamason2



Joined: 06 Oct 2006
Posts: 5

PostPosted: Fri Apr 13, 2007 11:50 pm    Post subject: Reply with quote

unfortunately it's still not working; i get a "script is busy" javascript alert dialog and eventually javascript errors indicating it can't see the cooltreepro.js functions. html follows:

<html>
<head></head>
<body>
<script type="text/javascript" src="/lib/extern/cooltree/cooltreepro.js"></script>
<script type="text/javascript" src="/lib/tree_format.js"></script>
<script type="text/javascript" src="/lib/tree_nodes.js"></script>
<script type="text/javascript" src="/lib/extern/ibm/prototype.js"></script>
<script>
var myTree = new COOLjsTreePRO("tree1", TREE_NODES, TREE_FORMAT);
myTree.init()
</script>
<script>RedrawAllTrees();</script>
</body>
</html>

i've confirmed the version of cooltreepro.js:
// Title: COOLjsTree
// URL: http://javascript.cooldev.com/scripts/cooltree/
// Version: 2.8.7a

and prototype.js:
/* Prototype JavaScript framework, version 1.3.1

actually i need to load prototype.js in the head, but i'm unable to get it to work in the body first.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Apr 14, 2007 3:18 am    Post subject: Reply with quote

You're using prototype 1.3.1 which defines "Object.prototype.extend". So, it extends every object instance, and makes hashes partially unusable - nobody can use "for (var key in hash) { ... }". Believe me, this is extremely bad practice, and it is incompatible with almost every major script library. That's why you can see the following statement as a "best practice" from some gurus: do not use prototype.js - it modifies Object.prototype.

We will never make our code compatible with prototype 1.3.1.

Newer versions of prototype (1.4.0, 1.5.0) behave much more politely, and no conflicts arise. So, upgrade.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1