Of course, but I would have to pull my head out of my butt first.  DOH!

On Mon, Feb 23, 2009 at 9:26 PM, groovetrain <[email protected]> wrote:

>
> couldn't you just do something like:
>
> onchange="document.location.href = '/buildshelf/' + this.value"
>
> Groove
>
> On Feb 23, 9:35 pm, Me <[email protected]> wrote:
> > Well I did this:
> > :onchange => "document.location.href = '/buildshelf/' + $F
> > ('node_id').value + "
> >
> > for the onchange part and I get this for html, still puzzled:
> > <select id="node_id" name="node[id]" onchange="document.location.href
> > = '/buildshelf/' + $F('node_id').value + ">
> >
> > On Feb 23, 8:31 pm, groovetrain <[email protected]> wrote:
> >
> > > Can you see the problem there in the rendered HTML?
> >
> > > Groove
> >
> > > On Feb 23, 8:48 pm, Me <[email protected]> wrote:
> >
> > > > <select id="node_id" name="node[id]" onchange="document.location.href
> > > > = '/buildshelf/' + $F(&quot;node_id&quot;).value + ">
> >
> > > > On Feb 23, 7:43 pm, groovetrain <[email protected]> wrote:
> >
> > > > > What is the HTML that is rendered from that?
> >
> > > > > Groove
> >
> > > > > On Feb 23, 8:24 pm, Me <[email protected]> wrote:
> >
> > > > > > I have this select statement, trying to change to a page that is
> the
> > > > > > value of the select:
> >
> > > > > > <%= select(:node, :id, $shelves,{:prompt =>'Select Equipment'},
> > > > > > { :onchange => "document.location.href = '/buildshelf/' +
> $F(\'node_id
> > > > > > \').value + ' "} ) %>
> >
> > > > > > How do I make this happen?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to