I'm using the Nivo Slider plugin to create a slider on my page. If I put the slider structure directly on the page, it loads right ... but if it's inside content loaded via ajax, it just does not appear at all.
What can it be? The funny thing is that the lighbox works, but the slider does not ...
I use this to load the slider:
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
And this is how I call my ajax content:
<script type="text/javascript">
function startEmpreendimento(e) {
e.preventDefault();
var href = "<?php echo $primeiroID; ?>";
$("#content-empreendimentos").load(href + " #content-empreendimentos");
}
window.onload=startEmpreendimento;