This is my first question on here, and I couldn't find any related questions that seem to have the same problem. I found a few people talking about .bind() to disable a link, but my problem is having multiple links that are in different parts of the site loading different pages.
So I am wondering if there is a simple ajax load method I could use that has an option of stopping and clearing what it was loading, if another link is clicked to load something else.
I am doing this as a precaution for the impatient people out there on the web. Since, calling one load onto a div and then calling another load onto the same div sometimes results in the first load taking longer and end up loading after the second one loads.
This is what I am using at the moment.
$('#content').empty().load(event.value, function() { //callback });
I am pretty sure there is no way to stop a .load() method once it is called, so is there another load method out there that can be stopped?