Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. AJAX not working when more than one line is in the partial
  2. $('#next_videos').replaceWith('<%= render(:partial => 'videos')%>');
  3.        
  4. <p> Testing </p>
  5.        
  6. <p> Testing </p>
  7. <%# holder = videos_counter %>
  8.        
  9. <p> Testing </p> <p> Testing </p>
  10.        
  11. <p> Testing </p>
  12. <p> Testing </p>
  13.        
  14. $('#next_videos').replaceWith('<%=j render(:partial => 'videos') %>');