I am using an ajax call to a load a part of the page inside a given div
tag.
The code is as follows:
$("#Gallery").click(function() {
var myUrl = $(this).attr("href");
$("#Content").load(myUrl);
return false;
});
The Page that is loaded , in this case "Gallery.html" has a Jquery plugin that I am using to create a photo gallery. The code of the calling method is as follows:
<script class="secret-source">
jQuery(document).ready(function($) {
$('#banner-fade').bjqs({
height : 320,
width : 620,
responsive : true
});
});
</script>
The images forming the gallery are:
<ul class="bjqs">
<li><img src="Images/Image1.jpg" title="Caption"></li>
<li><img src="Images/Image2.jpg" title="Caption"></li>
<li><img src="Images/Image3.jpg" title="Caption"></li>
</ul>
The problem that I am facing is that when I navigate to the page Gallery.html via ajax call, the whole page loads except the images. There is not even an image icon there. If I navigate to the page a second time, the images appear.
Can anyone tell me why this is happening and how to rectify it?