Forum: Ruby on Rails URL pop-up from selection (select box)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5c27aa958030eed6817e4b2295d2040b?d=identicon&s=25 jabo (Guest)
on 2007-01-19 10:33
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','']
   @my_array<<['Destination 2','']
   @my_array<<['Destination 3','']

<% 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 !!
5c27aa958030eed6817e4b2295d2040b?d=identicon&s=25 Ja Bo (jabo)
on 2007-01-20 00:10
anyone ?
6d5602ac22cc57505c0d3a24b3d63108?d=identicon&s=25 Tyler Prete (Guest)
on 2007-01-20 10:55
(Received via mailing list)
I debated responding since I don't really know the answer, but I can
much guarantee you it will require javascript.

Hope that helps,
Tyler Prete
This topic is locked and can not be replied to.