I am trying to grab items, organized with Javascript, and put them on the content of my page. The issue I am coming across is that when I use .load(), it does not grab any javascript, so the images I grab are not in the right organization.
Here is the function I use to grab the content:
function loader(url) {
$.get(url, function(data) {
$('#posts').fadeOut('normal',function(){$('#posts').html(data);});
$('#posts').fadeIn('normal');
}).error(function(url) {
alert('error');
});
};
After researching, it seems that in order to get the javascript I need to use Ajax
Here is the thing:
I have the exact same javascript code on my page that is the javascript for the other page that is not getting applied. Is there a way that I can apply this javascript on the items loaded with .load()?