Playing around with .load() and wrote a simple script.
User clicks on a link, and then a .php page gets called from that link.
The php page which is loaded has a bunch of different css styles on it.
The classes and ID's from the loaded php page is included on the parent page...
for example if the page is index.php and I am loading test.php, all of the necessary CSS for test.php is in the <head> of index.php.
However, when the page loads, the CSS does not get shown from the loaded page.... even tho the necessary classes are there. Any ideas?
Code:
<script>
$(document).ready(function () {
$("#test1").click(function () {
$('#bodyContainer').fadeOut('slow', function () {
$('#loader').load('test.php');
});
});
});
</script>
Any help would be greatly appreciated. Thanks!