Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chained listboxes 1

Status
Not open for further replies.

dongbamage

Programmer
Nov 3, 2004
32
GB
I would like a category listbox which is populated from my db, when I select a category I would like my subcategory lisbox to be dynamically populated from my db based upon which category was chosen.

I then would like my subsubcategory listbox to be dynamically populated from my db based upon which subcategory was chosen.

and then I then would like my subsubsubcategory listbox to be dynamically populated from my db based upon which subsubcategory was chosen.

I'm a noob to javascript so I'm finding this difficult, I have searched and searched but can only seem to find scripts for non db based listboxes that update each other...

please help!!!!

I'm going insane!
 
dongbamage, this thread has almost completely fallen out of the scope of this forum. The answer to your latest question is because none of the strings that you are defining in the array are surrounded by quotes, but that is because it's being generated incorrectly by PHP. So, you really should be posting your questions on this project in that forum.

On a side note, is your boss paying chessbot to debug your program for you? The least you could have done is awarded him a star...... (hint: the "thank chessbot for this valuable post" link)

-kaht

banghead.gif
 
I can't seem to find a working example of a dynamiclly generated php/ javascript listbox so I guess it would be useful to a lot of people, and will post the finished script so that others can use it. ( If u know otherwise please feel free to correct me)

I will check my php code if u think that is where the problem is, (thanks)

I have awarded chessbot a star (he is a very helpful guy and I appreciaate the considerable effort he has gone to help me with this challenge)

Cheers

dongbamage
 
Why, thank you.

--Chessbot

There is a level of Hell reserved for probability theorists in which every monkey that types on a typewriter produces a Shakespearean sonnet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top