Snippet: adding a Show All option to a page select dropdown - April 13, 2009

Someone asked how to add a Show All option to the page select dropdowns generated by VaeML. Personally, I would place Show All as a link next to the dropdown, but if you really wanted to do it, here's how I'd go about it:

Page: 
<v:select id="pageselector" onchange="if (this.value == 'all') { window.location.href='/my_show_all_url'; return false;}">
<option value="all">Show All</option>
</v:select>