3 ms·
Have you considered parsing the page using javascript, or selectively returning a partial on an ajax request? I use the first method quite a bit. It's a bit s
by csytan 17y ago
Have you considered parsing the page using javascript, or selectively returning a partial on an ajax request? I use the first method quite a bit. It's a bit slower to send the whole page, but does not require any server side changes.
Once you get the html, libraries like jQuery make the parsing and replacing very easy.
$(html).find('#testimonial').replaceAll('#testimonial');
- unlinkedlist 17y agoSimpler still: $('#testimonial').load('/testimonial-3 #testimonial p');