Insider1984
Technical User
Hello everyone. I'm not new to programming but this is my first post in the javascript forum as I'm new to writing my own java script. My past experience has pretty much been modding correctly working java script.
anyway my question. I have a working menu system using a js file with the following inside of it:
It's pretty basic. The java script just makes a neat little menu from it. I use it currently to allow non programmers to make their own menus.
I'd like to extend the functionality of this one more by adding a next and back button either on the menu or at the bottom of the page that can help go "back" and "forward" through the list.
Seems like it should be fairly easy but without debugging (like I'm used to in C# for example) I don't have the confidence to just tinker until I understand and find the solution.
Please help if you can. Thanks!
=====================
Insider
4 year 'on the fly' programmer
C++ Basic Java
anyway my question. I have a working menu system using a js file with the following inside of it:
Code:
/* Vision Menu items structure */
var MENU_ITEMS = [
['Vision Basics', null, null,
['Introduction', null, null,
['Acronyms', '1-1.html'],
['Terms', null],
['Save Values', null],
['Part Files Structure', null],
['Image Naming Format', null],
['Vision System Overview', null],
['ImageJ/Matrox', null]
],
['CAD Files', null, null,
['CAD File Locations', null],
['DXF', null],
['Modifications Needed', null],
['Troubleshooting Common Errors', null]
],
['Vision Editor', null, null,
['mini', null],
['cad', null],
['dxfx', null],
['pini', null],
['Field Of View Layout', null],
['Placing Inspection Windows', null],
['Scripts', null],
['Masks', null],
['Nominals', null],
['Synthetics', null]
],
['Part File Cleanup', null, null,
['remove tests without masks', null]
],
['Synthetic Images', null, null,
['No Errors', null],
['No Clipping', null],
['Full Part Coverage', null],
['All Edges Train', null],
['Masks Are Places Correctly', null]
]
],
['Advanced', null],
['Expert', null]
];
It's pretty basic. The java script just makes a neat little menu from it. I use it currently to allow non programmers to make their own menus.
I'd like to extend the functionality of this one more by adding a next and back button either on the menu or at the bottom of the page that can help go "back" and "forward" through the list.
Seems like it should be fairly easy but without debugging (like I'm used to in C# for example) I don't have the confidence to just tinker until I understand and find the solution.
Please help if you can. Thanks!
=====================
Insider
4 year 'on the fly' programmer
C++ Basic Java