3 ms·
Is this in any way different than the common rails feature? <div id="bar"></div> <% link_to "Load #{@widget}", @widget, remote: true, id: 'foo' %>
by pdkl95 11y ago
Is this in any way different than the common rails feature?
<div id="bar"></div>
<% link_to "Load #{@widget}", @widget, remote: true, id: 'foo' %>
$("#foo").on("ajax:success", function (e, data, status, xhr) {
$("#bar").html(xhr.responseText);
});
I thought rendering partials and dynamically replacing them has been a standard feature of most frameworks. Rails even renders a working link so the page works without the javascript.