SunQuest
           Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old October 24th, 2002, 10:53 AM
phyzar phyzar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Syd or UK
Posts: 21 phyzar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 21 sec
Reputation Power: 0
Send a message via ICQ to phyzar
Question simple answer to this array problem?...

Hello,
Im sure theres a simple solution to this...
Havent been able to work it out... rather frustrating.
Im not a very proficient coder - well for JS anyhow.

My website has this array created dynamically in the webpages... based on which page it is...

Code:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!-- 
var child_sections = new CreateArray(3);
child_sections[1].sName = "Books";
child_sections[1].sURL = books.html";
child_sections[1].sImage = "";
child_sections[1].nSectionId = "5";
child_sections[1].nImageWidth = "0";
child_sections[1].nImageHeight = "0";
child_sections[2].sName = "Office Furniture";
child_sections[2].sURL = Office_furniture.html";
child_sections[2].sImage = "office_furniture.gif";
child_sections[2].nSectionId = "1";
child_sections[2].nImageWidth = "150";
child_sections[2].nImageHeight = "150";
child_sections[3].sName = "Office Supplies";
child_sections[3].sURL = "Office_supplies.html";
child_sections[3].sImage = "office_supplies.gif";
child_sections[3].nSectionId = "2";
child_sections[3].nImageWidth = "150";
child_sections[3].nImageHeight = "150";
// -->
</SCRIPT>


what i want to do with the information in this array is to create some simple navigation - vertical text links.

eg:

books
office furniture
office supplies

All ill need from this array for now is the .sURL and .sName values. I need to create a loop which will dynamically create the links on the pages - for future expansion of my site.

Ive looked at loops and document.write... etc but i cant figure it out.

Can anyone help?

Much appreciated,

Jay-Dee

Reply With Quote
  #2  
Old October 24th, 2002, 11:31 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Well, I see you found the right forum for this. I'll go post my reply there.
__________________
-james

Last edited by bricker42 : October 24th, 2002 at 11:36 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > simple answer to this array problem?...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway