I'm load course categories into a list using below code. When clicks on courseCategory all available courses loads to the loads under that category.
<ul>
@foreach (var item in Model)
{
<li class="list-group-item">
<span class="inlineWord"> @item.courseCount</span>
@Ajax.ActionLink(item.courseCategory,"FilteredCourses",
new { crsCtgry = item.courseCategory },
new AjaxOptions{
UpdateTargetId = "CourseList",
InsertionMode = InsertionMode.Replace,
HttpMethod = "GET"
},
new { @class = "myLink", data_courseName = item.courseCategory })
</li>
}
</ul>
Courses has images. I used fancy box to popup images. This is how I used fancyBox. reference : Fancy Box not working and when click on an image it'll opens in new html page
I solved the reference question and now arise another problem. Image inside a one course is display correctly. But when I click on a Ajax action link, and select another course's image image will not pop up. But screen appears dark look and feel of fancyBox. if I refresh the entire page and then select a category and then select image of course it'll display correctly again.
Is there a relationship of fancybox with a ajax?