Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > How do I create a dropdown for navigation? View modes: 
User avatar
Member
Member
lebanoff-coj - 10/8/2009 2:57:55 PM
   
How do I create a dropdown for navigation?
<select size="1" onchange="javascript:window.location = document.form1.ddpaymentselect.value" id="ddpaymentselect" name="ddpaymentselect">
<option value="http://www.coj.net" selected="selected">Payments</option>
<option value="http://itdlktd555.coj.net/cojKenticoDev/Mayor.aspx">Mayor's Office</option>
<option value="http://itdlktd555.coj.net/cojKenticoDev/City-Council.aspx" target="newwin">City Council</option>
</select>
---------------------

I put this on the page in an editable text webpart and then get an error that says document.form1.ddpaymentselect is null or is not an object

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 10/14/2009 4:17:04 PM
   
RE:How do I create a dropdown for navigation?
Hello,

We have been solving this issue over the e-mail and my last recommendation was creating webpart containing your dropdown list with defined OnSelectedIndexChanged property. In the code-behind you will redirect user to appropriate location. More details could be found here: devnet.kentico.com/docs/devguide/developing_web_parts.htm.

I hope it will be ok.

Best Regards
Ondrej Vasil