I am doing a project/tasks thing all ajax. I have the current project list in a drop down list but this issue is popping up again when I re render the partial to update the list when a project is closed it does not give me a prompt even though it is in the options. I can reload the whole page and it works which is strange. I have tried replace_html and also replace and it still gives me the same result. current_projects partial: <%= select( :project, :id, current_user.projects.find (:all,:conditions=>{:completed => false}).collect {|p| [ p.name, p.id ] }, { :prompt => true}, { :onchange => remote_function( :url => { :controller => ''projects'', :action => ''showproject'', :id => ''1'' }, :with => "''p_id='' + this.value" ) } ) %> -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
any ideas? On Dec 8, 6:45 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am doing a project/tasks thing all ajax. I have the current project > list in a drop down list but this issue is popping up again when I re > render thepartialto update the list when a project is closed it doesnotgive me a prompt even though it is in the options. I can reload > the whole page and it works which is strange. I have triedreplace_htmland also replace and it still gives me the same result. > > current_projectspartial: > > <%=select( :project, :id, current_user.projects.find > (:all,:conditions=>{:completed => false}).collect {|p| [ p.name, > p.id ] }, > { :prompt => true}, { :onchange => remote_function( :url => > { :controller => ''projects'', :action => ''showproject'', :id => ''1'' }, > :with => "''p_id='' + this.value" ) } ) %>-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
is it that :prompt needs a string ? Tonypm -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Chris Habgood
2009-Dec-16 16:36 UTC
Re: Re: rjs replace_html with a partial select box not working
You can but it works just fine when the page loads up or you refresh the whole page. On Wed, Dec 16, 2009 at 5:50 AM, tonypm <tonypmartin-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> is it that :prompt needs a string ? > > Tonypm > > -- > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.