I'm interested in Ajax and dynamically loading content into a div. I have been using jQuery for a few months now, but I am new to Ajax. I found this downloadable tutorial online: here that worked fine, but when I downloaded it and tested it locally, the content does not dynamically load. Do the webpages need to be live in order to dynamically load the content? If that's true, how do you test ajax? I've used XAMPP for dynamically loading PHP content, but have not tried with Ajax. here bellow is the simple jquery used to load the content:
$(document).ready(function(){
$('a').click(function(e){
e.preventDefault();
$("#dynamic").load($(this).attr('href'));
});
});
Any thoughts leading me in the right direction would be helpful. Thanks!