Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-10-2009, 07:49 PM   PM User | #1
beth_hansel
New to the CF scene

 
Join Date: Apr 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
beth_hansel is an unknown quantity at this point
Dropdown Autopopulate

Hi,

How can I make my dropdown menu pull items from the database dynamically. Right now, everytime we add a new item into inventory, we have to manually add it to the menu. Is there a way to make it automatically pull new the new ones? Also, would there be a way to make the ones that have zero inventory not show up?

Thanks in advance!!!
Beth

here is a sample of the code I'm working with:

<form action="deluxeSFshop.aspx" name="searchbox" id="searchbox">
<input type='hidden' name='sfid' value=87970 >
<select name="c" id="c" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
<option value="0" selected>pick boys theme</option>
<option value="156240">animals</option>
<option value="156248">backyardigans</option>
<option value="156249">blues clues</option>
<option value="156250">bob the builder</option>
<option value="156261">buzz lightyear</option>
<option value="156262">cars (disney)</option>
<option value="156251">cars-trucks-planes</option>
</select>
</form>
beth_hansel is offline   Reply With Quote
Old 04-10-2009, 08:18 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
There sure is, but it gets into server side languages so you'll want to post your question in the forum for the language you are using (ASP, PHP, etc).
__________________
Fumigator is offline   Reply With Quote
Old 04-10-2009, 08:44 PM   PM User | #3
beth_hansel
New to the CF scene

 
Join Date: Apr 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
beth_hansel is an unknown quantity at this point
Thanks so much! I will do that.
Beth
beth_hansel is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:46 AM.


Advertisement
Log in to turn off these ads.