// END UPDATE
I need a solution that involves Expression Engine and jQuery to dynamically retrieve weblog entries and pull them into the parent page without a page refresh. The trigger for this is the user scrolling down to the bottom of the parent page.
My current setup is my main parent page and a very simple template which contains the expression engine weblog:entries tag to retrieve the most recent entries (literally just gets the entry title and summary). I am using the jQuery .get function in my parent page to retrieve the entries in my template page.
I have all this functionality currently working however, the problems I need to overcome are as follows:
1. Currently if no entries exist the request to the template page is still triggered and repeats in an endless loop. I need to stop the request when there are no remaining entries to retrieve.
2. If for example I only have two entries (as a result of the query in my template page), these two entries are repeated until the they fill up the current row. I need to stop the content being repeated - each entry should only appear once on the parent page.
Thanks very much for your time.