Share » Forums » Setup & design » Redirect with form / DropDown list

Redirect with form / DropDown list

Redirect with form / DropDown list

Thursday 29 September 2005 12:13:21 am - 1 reply

Modified on Thursday 29 September 2005 12:28:05 am by Norman Leutner

Author Message

Norman Leutner

Thursday 29 September 2005 12:40:26 am

Ok, i got it but you need to have javascript enabled.
I think this is the best solution.

onchange="window.location=this.form.RedirectTo.options[this.form.RedirectTo.selectedIndex].value;"

<form action="" method="get">
  <select class="input" name="RedirectTo" id="RedirectTo" onchange="window.location=this.form.RedirectTo.options[this.form.RedirectTo.selectedIndex].value;">
    <option value={$node.url_alias|ezurl}>(Select your application)</option>

    {section loop=fetch('content', 'list', hash( 'parent_node_id','97',
                                                 'sort_by',array(name,ascending)
							   )
                       )
    }
      <option value={$:item.url_alias|ezurl}>{$:item.name|wash}</option>
    {/section}
  </select>
</form>

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu