SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
Thread: Problem with array/object??
-
Sep 15, 2006, 00:59 #1
- Join Date
- Aug 2005
- Location
- Aldan, PA, USA
- Posts
- 13
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problem with array/object??
Code:var ROOT_PATH = "./"; App = new Object(); App.modules = new Array(3); App.modules[0] = { name: 'Home', path: ROOT_PATH + 'sources/js-modules/home.js', access: 1 } App.modules[1] = { name: 'Register', path: ROOT_PATH + 'sources/js-modules/register.js', access: 1 } App.modules[2] = { name: 'My Account', path: ROOT_PATH + 'sources/js-modules/myaccount.js', access: 2 } App.modulesBuild = function() { mods = App.modules for(i=0;i>mods.length;i++) { alert( i ); } return; }
Thanks ahead of time,
Bookmarks