0

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();
  });
}

Edited by Thevenin

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Thevenin
0

Solved, called the options inside the swapcontent function.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.