so I am using jquery and updating a dom element with
$('#thelist').replaceWith("<%= escape_javascript(render(:partial =>
@deals)) %>");
this works fine except it is not hitting the server so if @deals is
updated, it is not refreshing and showing the latest version. My
question is how to ajax this thing so that it will update to the
latest version of @deals. The full code is:
onPullDown: function () {
setTimeout(function () {
$('#thelist').replaceWith("<%=
escape_javascript(render(:partial => @deals)) %>");
myScroll.refresh();
});
},
thanks in advance!
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.