I have two Ajax function that are on the same div, so the first one isn't executed or better is canceled from the second one.
Any hint on how to fix this problem?

I wasted two days and wasted my brain too without finding a solution.

$(function(){
  $('#navigation').find('a').tooltip({effect: 'slide'});
});

$(window).load(function(){
  $('#sliding').slider({
    _Options: {
     imageWidth: 300,
     imageHeight: 200
    }
  });
});

function swapContent(cv) {
  var url = "testing_cover.php";
  $.post(url, {contentVar: cv}, function(data) {
    $("#sliding").html(data).show();
  });
}

Solved, called the options inside the swapcontent function.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.