Displaying 1 result from an estimated 1 matches for "image_center".
2012 Aug 07
4
how to do render partial on jquery ajax success method with rails 3
...rails 3.2.1 with jquery for an ajax call.
My juqery code is :
jQuery.ajax({
url: "/org_pages",
data: ''org_id=''+ org_id,
type: "POST",
success: function(result){
jQuery("#image_center").html("<%=
escape_javascript(render(:partial => ''pages/top_link'')) %>");
},
error: function(){
alert(''Error occured'');
}
});
My problem is on the web page th...