When I wasn't using the plugin to put ajax content into my scroll div, I could do this
$('.album').hover(function(){
var id = $(this).attr('id');
ajax request here
});
And every time I would hover over .album with a new id a different set of content would be the input specific to the id number. But I have to use the plugin to use ajax because it has to do other functions for the scroll to work.
So I try this:
$('.album').hover(function(){
var id = $(this).attr('id');
$("#makeMeScrollable").smoothDivScroll({
getContentOnLoad: {
method: "getAjaxContent",
content: "albumphotos.php?id="+ id,
manipulationMethod: "replace"
}
});
});
Which works perfect and lets the scroll work. But then I scroll over to a different album with a different id it doesn't redo the request and stays with the same id and same content. What can I do?