Sunny Auluck wrote:

>I have done some web development in the past and now I am having to do some 
>web work using Dreamweaver as this small project just landed on my desk.  One 
>of the pages required this double drop down functionality.
>
>You mentioned in your post that you used "Jump List" when I searched help for 
>this could not see any refernece to it there was reference to "Jump Menu", I 
>am using Dreamweaber MX.
>
>Can you please help me with this?  Can you please point me some more 
>information which will help me get this done.
>  
>
The jump menu is just a list of options with URLs as the value.  the 
onchange attribute of the select tag has a bit of code that sends the 
user to the url in the selected option.  Incidently, this is not a good 
way to relate two selects from the user's perspective. To much reloading 
of the page etc. Better to use the tag I indicated earlier in the thread.

Anyway, here's a jump menu.... 

<script language="javascript" type="text/javascript">
    function doJump(thisSelect) {
        if (thisSelect.selectedIndex > 0) {
          
document.location.href=thisSelect.options[thisSelect.selectedIndex].value;
       }
    }
</script>
<select name="jumpMenu" onchange="doJump(this)">
    <option value="Pick One...">
    <option value="http://www.disney.com/";>Disney</option>
    <option value="http://www.macromedia.com/";>Macromedia</option>
</select>

NOTE: the script should be in the head of the page and not inline in the 
HTML.

Stephen

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1436
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to