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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
What is the HTML that is rendered from that? Groove On Feb 23, 8:24 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<select id="node_id" name="node[id]" onchange="document.location.href = ''/buildshelf/'' + $F("node_id").value + "> On Feb 23, 7:43 pm, groovetrain <joelgreut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What is the HTML that is rendered from that? > > Groove > > On Feb 23, 8:24 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Can you see the problem there in the rendered HTML? Groove On Feb 23, 8:48 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> <select id="node_id" name="node[id]" onchange="document.location.href > = ''/buildshelf/'' + $F("node_id").value + "> > > On Feb 23, 7:43 pm, groovetrain <joelgreut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > What is the HTML that is rendered from that? > > > Groove > > > On Feb 23, 8:24 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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
<joelgreut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Can you see the problem there in the rendered HTML?
>
> Groove
>
> On Feb 23, 8:48 pm, Me
<chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > <select id="node_id" name="node[id]"
onchange="document.location.href
> > = ''/buildshelf/'' +
$F("node_id").value + ">
>
> > On Feb 23, 7:43 pm, groovetrain
<joelgreut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > What is the HTML that is rendered from that?
>
> > > Groove
>
> > > On Feb 23, 8:24 pm, Me
<chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
couldn''t you just do something like: onchange="document.location.href = ''/buildshelf/'' + this.value" Groove On Feb 23, 9:35 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <joelgreut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Can you see the problem there in the rendered HTML? > > > Groove > > > On Feb 23, 8:48 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > <select id="node_id" name="node[id]" onchange="document.location.href > > > = ''/buildshelf/'' + $F("node_id").value + "> > > > > On Feb 23, 7:43 pm, groovetrain <joelgreut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > What is the HTML that is rendered from that? > > > > > Groove > > > > > On Feb 23, 8:24 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <joelgreutman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > couldn''t you just do something like: > > onchange="document.location.href = ''/buildshelf/'' + this.value" > > Groove > > On Feb 23, 9:35 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <joelgreut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Can you see the problem there in the rendered HTML? > > > > > Groove > > > > > On Feb 23, 8:48 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > <select id="node_id" name="node[id]" onchange="document.location.href > > > > = ''/buildshelf/'' + $F("node_id").value + "> > > > > > > On Feb 23, 7:43 pm, groovetrain <joelgreut...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > What is the HTML that is rendered from that? > > > > > > > Groove > > > > > > > On Feb 23, 8:24 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---