I'm using some css files and js libraries (bootstrap, packry, etc.) in my master page. There's a button on page that when you click on it, it sends an ajax request and prints the response on a div in current page:
jQuery.post("index.php", "some_post_data", function (data)
{
jQuery('#mydiv').html(data);
});
The page I'm calling needs those libraries I've already included on my master page, but when I print the response inside the div, it still shows js errors and style-less objects. If I add those resources to the second page, it will work but I don't want to do this.
Do I have to do some kind of refreshing thing on the newly printed html codes, or something like that? What am I doing wrong in here?