Hi All,
Please tell me how to use a :popup with remote_function
I have a select box and I have to show the names associated
with the item in a seperate popup when that item is selected.
my code is
VIEW:
<%= select_tag “filled”, options_for_select(@filled),
{ :onchange =>
remote_function(
:url => {:action => ‘needstatus’,:id=>need.id},
:with => “‘status=’+this.value” ) } %>
CONTROLLER:
def needstatus
if params[:status]
render :partial => ‘needstatus’
end
end
and I dont know where to use the :popup, i’ve tried using the popup in
all the places but I cant get any new window can anybody help me