I would like to have a "popup" window to open when selecting a value in a selection box, all this without "JavaScript".. So far I have the following code in a view file, no action ''pop_up_window'' defined so far... <%= start_form_tag :controller => ''list'', :action => ''pop_up_window'' %> <% @my_array=["Select Destination..."] @my_array<<[''Destination 1'',''http://www.domainname1.com''] @my_array<<[''Destination 2'',''http://www.domainname2.com''] @my_array<<[''Destination 3'',''http://www.domainname3.com''] %> <% select ''destination'', ''destination_url'', @my_array, {}, {:style => "width:100px"} %> <%= submit_tag "Go !" %> <%= end_form_tag %> What would be the code for the action ''pop_up_window'' ?? Are there other ways to achieve the result (without using JavaScript) ? Thank you very much !! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
anyone ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I debated responding since I don''t really know the answer, but I can pretty much guarantee you it will require javascript. Hope that helps, Tyler Prete On 1/19/07, jabo <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > I would like to have a "popup" window to open when selecting a value in > a selection box, all this without "JavaScript".. > > So far I have the following code in a view file, no action > ''pop_up_window'' defined so far... > > <%= start_form_tag :controller => ''list'', :action => ''pop_up_window'' %> > > <% > @my_array=["Select Destination..."] > @my_array<<[''Destination 1'',''http://www.domainname1.com''] > @my_array<<[''Destination 2'',''http://www.domainname2.com''] > @my_array<<[''Destination 3'',''http://www.domainname3.com''] > %> > > <% select ''destination'', ''destination_url'', @my_array, {}, {:style => > "width:100px"} %> > > <%= submit_tag "Go !" %> > > <%= end_form_tag %> > > What would be the code for the action ''pop_up_window'' ?? > Are there other ways to achieve the result (without using JavaScript) ? > > Thank you very much !! > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---