Replies Back to Article
Dynamic Dropdown Lists
I did notice that Dreamweaver MX does not retain the code change in the dialogue box (listbox.asp?bands=) so the page would not work. When I added this code manually it worked fine. Ultradev4 retained the code change.
For those of you who have been trying to remove excess parameters from the values submited by the jump menu, here's what you do...
Rather than place "listbox.asp?bands=" in the value feild, go up to the head of the code, and find the jump box script. Then put in listbox.asp?bands= right after the part that says .location='
It will look like this (hope code posts right...):
<CODE>
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location=listbox.asp?bands="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</CODE>
Hope this helps!

Hello everyone!!!
In the last example for Lar Van Der Jagt the URL value in location not appear on change the page.
This code run in Ultradev and MX:
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+"page.asp?fieldname="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
Regards, Javier Fernandez
How can I code the dropdown, so that if another item is selected in the menu after other fields in the same form have been populated they are NOT cleared. For instance, I select item 1 from dropdown menu and it populates some text fields; then I fill in some more text fields, then decide I need to change my selection from the dropdown menu to item 2.
Right now using this code, when I do this, it clear ALL the fields in the form and I have to start over.
Is there someway I can code this so it does not clear the fields I have already filled in??
Please help.. I can't find this information anywhere.
Thanks
Wendy Owens
Using DMX
Need help on jump menu, i have try this tutorials and the dropdown work fine. But one thing when selected and submit the first dropdown will keep in the first item.
Tks/skkoh
Hi,
Really struggling to make this work in DMX. Any chance of this item being modified to reflect Ultradev now being part of DMX 2004? I'm finding it hard to guess at the correct way to do it/what changes to make to make it work in DMX..probably something to do with the dynamic list item but I can't quite put my finger on it (BTW I can't code and have only used DW3 to date).
Any help appreciated
RobH