Suppose a new page is loaded, with one entry (i.e. snapgroup). And I can view the source page which includes that one loaded entry in the html. So when I scroll down, it loads another entry. Now when I view the source page nothing has been changed, and the newly loaded entry is not included in the html, only the first entry exist instead of two entries. However it does display in the browser. And since I am using a lightbox, when I open an image of second entry from the slider it does open the image but if I click next, it starts displaying the images only from the first entry. What's going on?
I came across this question, but both our questions are different. Will someone please help me with this. Thank you.
views.py
def snaps(request,template = 'snaps.html',
page_template = 'snapgroups.html' ):
context = {}
snapgroup = SnapGroup.objects.order_by('-date')
context.update( {'snapgroup': snapgroup, 'page_template': page_template,} )
# override the template and use the 'page' style instead.
if request.is_ajax():
template = page_template
return render_to_response(
template, context, context_instance=RequestContext(request) )
Suppose a new page is loaded, with one entry (i.e. snapgroup). And I can view the source page which includes that one loaded entry in the html. So when I scroll down, it loads another entry. Now when I view the source page nothing has been changed, and the newly loaded entry is not included in the html, only the first entry exist instead of two entries. However it does display in the browser. And since I am using a lightbox, when I open an image of second entry from the slider it does open the image but if I click next, it starts displaying the images only from the first entry. What's going on?
I came across this question, but both our questions are different. Will someone please help me with this. Thank you.
views.py
snaps.html:
snapgroup.html: