ggalan
08-25-2010, 03:27 AM
is there a way to load images in without the html container?
i have this
<div id="target"></div>
<p><a href="#" class="ajaxtrigger">Let there be AJAX magic</a></p>
… and this jQuery code:
$('.ajaxtrigger').click(function(){
$('#target').load('ajaxcontent.html');
});
but the file ajaxcontent.html is just a container for a jpg
trying to minimize the number of files
i have this
<div id="target"></div>
<p><a href="#" class="ajaxtrigger">Let there be AJAX magic</a></p>
… and this jQuery code:
$('.ajaxtrigger').click(function(){
$('#target').load('ajaxcontent.html');
});
but the file ajaxcontent.html is just a container for a jpg
trying to minimize the number of files