• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

option list & or Functions

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everyone.

I am about to make a web page up with a collection of my CDs. (this is not to go on the web, just to see if I can make the changes in the option list to do what I want it to do)

I want to make option lists for the artists
e.g.
pearl jam
smashing pumpkins

and having another option list which shows only the albums of the artist
e.g.
smashing pumpkings
gish
siamese dream
melon collie and the infinite sadness

my question is, do I make up arrays for each artist, then if I pick an artist that array gets called to the seperate option list to populate it?

also, say I want to record the artist then album, can I send this data to another file an add the data, like in java?
e.g.
smashing pumpkins gish
pearl jam ten
smashing pumpkins siames dream

I know I can display it on the browser window, but to add it to another file would be a benefit as well.

I have not made up any code just yet, but soon will.

Davy

p.s. what I mean is something like the web page I have a link to below but not as big that I should need a database.

stock locator
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are lookig for a double combo script.

Check this out: http://www.javascriptkit.com/script/cut183.shtml

Eric
 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was thinking of doing it in arrays,

can I populate a selction list with arrays e.g.


to output what has been populated in an array?

Davy
[ July 07, 2004: Message edited by: Davy Kelly ]
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The link I posted uses 2D arrays to fill in the second drop down menu. It is very simple to set up.
 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks eric it worked, with a bit of playing around.

now my other question is this.
I know I can get the values of the option list, and can print it to the screen, but can I send it to a file as well.

so I can record all the times I have looked for a band and album in a text log/file?
e.g.


Davy
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IE only, you are able to write to a text file with ActiveX controls. That would be the only browser that would support this without the use of a server side language.

Eric
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic