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 

Migration from cooljsmenu.js to cooljsmenupro.js

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
blouwagie
Guest





PostPosted: Mon Jun 16, 2003 3:58 am    Post subject: Migration from cooljsmenu.js to cooljsmenupro.js Reply with quote

Question:
Is there a migration to follow to get from cooljsmenu.js to cooljsmenupro.js ? If yes, what is it, if no, I have another issue with cooljsmenupro.js.
Thanks
Bart
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Mon Jun 16, 2003 7:38 pm    Post subject: Reply with quote

These scripts are mostly compatible. All you have to do is update references to coolmenupro.js and change initialization sequence. Your old initialization code probably look like the following piece of code.
Code:
<script type="text/javascript">
new COOLjsMenu('myMenu', MENU_ITEMS);
</script>

It should be changed like in the next snippet.
Code:
<script type="text/javascript">
var m1 = new COOLjsMenuPRO("myMenu", MENU_ITEMS)
m1.initTop();
</script>
...some html code...
<script type="text/javascript">
m1.init();
m1.show();
</script>
</body>
</html>

Please not that "init()" and "show()" calls must appear just before the very end of the file.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1