Board Logo

Documentation is wrong??? MENU_POS vs MENU_TPL
spw - 12/9/2005 at 04:42 PM

Tigra Gold documentation shows the text we need to include as follows:

<script language="JavaScript">
new menu (MENU_ITEMS, MENU_POS);
</script>

or

<script language="JavaScript">
new menu (MENU_ITEMS, MENU_POS, {'frames' : MENU_FRAMES});
</script>

HOWEVER, the menu system is expecting MENU_TPL not MENU_POS.

I have changed my version of the documentation and have also let Tigra know a?? they are currently reviewing the documentation and will hopefully correct the online documentation soon.


tigra - 1/21/2006 at 04:20 PM

you can give variables any names as long as they match the name you specify in the menu constructor. I.e. you can have:

MENU_POS in template.js and then the constructor will be:

<script language="JavaScript">
new menu (MENU_ITEMS, MENU_POS);
</script>

or you can have MENU_TPL in template.js then the constructor will be:

<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>

same is true for the MENU_ITEMS.

also you can rename configuration files if you feel like it.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/