use prototype''s Element.scrollTo() function
<select
onchange="Element.scrollTo(this.options[selectedIndex].value)">
<option value="item1">Item 1</option>
<option value="item2">Item 2</option>
...
</select>
...
<div id="item1">...</div>
<div id="item2">...</div>
...
On 6/8/06, sean colquhoun <seancolquhoun@gk-a.com>
wrote:>
> Hey everybody! I was just wondering if Rails'' javascript library
> includes something as simple as making a dropdown that jumps to the link
> when selected without needing a "submit" button. I see a bunch of
AJAX
> effects and draggable-element stuff, but all i need is a simple
> dropdown... should I code it myself?
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060608/5025cae7/attachment.html