Loading Remote content with jquery, NO BUFFER!
Hey, does anyone know how to disable the jquery buffer?
-
function loadContent(elementSelector, sourceUrl) {
$(""+elementSelector+"").load("http://yoursite.com/"+sourceURL+"");
}
-
<a href="javascript:loadContent('#content', 'source_page.php');">Link 1</a>
<div id="content">content will be loaded here</div>
That code will load content, but it will buffer it, and return it once it has collected all the content.. i want to return the content as jquery gets it to the client without buffering anything.
Cheers.