How to use :popup with remote_function

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

On 14 Aug 2009, at 14:44, Kart wrote:

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.

It doesn’t soon like you need to use remote_function at all - just
have your onchange do a window.open with the appropriate url

Fred