Hi I have a partial file _view_sd_resolution_details.rhtml..In that file i call link_to_remote as <table border="0" width="100%"> <tr> <td class="itillink1"> <%= link_to_remote "Edit Resolution", :update => "create_sd_resolution_ui", :url => {:action => :define_sd_resolution_ui, :sd_resolution => @sd_resolution_id, :id => @sd_ticket} %> </td> </tr> </table> Then in my controller action def define_sd_resolution_ui @sd_resolution_id=params[:sd_resolution] @sd_ticket=ServiceDeskTicket.find(params[:id]) @sd_resolution=@sd_ticket.service_desk_resolution render :action => "define_sd_resolution_ui.rjs", :layout => false end In define_sd_resolution_ui.rjs page.replace_html "create_sd_resolution_ui", :partial => ''define_sd_resolution_ui'', :object => @sd_resolution The partial file _define_sd_resolution_ui.rhtml is to be loaded ..That is my intention..But it is not working..Please help Sijo -- 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 have posted a similar question pls ignore that I have a file define_sd_resolution.rhtml..In that an ajax form is there <%= form_remote_tag :update => "update_sd_resolution_ui", :url => { :action => ''sd_resolution_save'', :id => @sd_ticket.id, :sd_resolution_id=>@sd_resolution_id}, :class => ''itilform''%> The complete file is inside a div <div id=''update_sd_resolution_ui''> WHAT I NEED IS AFTER THE OPERATION IN ACTION sd_resolution_save TO REPLACE THE DIV WITH ANOTHER PARTIAL FILE _view_sd_resolution_details.AND I TRIED LIKE BELOW I CREATED AN RJS FILE WITH SAME NAME AS THE ACTION ie, sd_resolution_save.rjs page[:update_sd_resolution_ui].replace_html :partial => "service_desk_part/view_sd_resolution_details", :object => @sd_ticket, :object => @hour_and_minute THIS CALLS _view_sd_resolution_details...BUT THE RESULT I GET IS ry { $("update_sd_resolution_ui").update("\074div id=''create_sd_resolution_ui''\076\n\n\n\n\n\n\074table border=\"0\" width=\"100%\"\076\n \074tr\076\n \074td class=\"itillink1\"\076\n \n \074DDND SOME BLA..... WHERE IS THE FAULT PLEASE HELP SIJO -- 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 -~----------~----~----~----~------~----~------~--~---
here I got solution with removing :update in form_remote_tag Sijo -- 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 -~----------~----~----~----~------~----~------~--~---