paulirish/infinite-scroll — Issue #129: Can't get javascript to execute when pulling via .ajax()
Author: andy-roo
Created: 2012-02-10 23:10:55+00:00
State: open

So I'm kinda new to using .ajax, but I think I understand the concepts of using the standard .load() method vs. .ajax() and an appended callback?

Anyway, here's my code:

```
$('#listContainer').infinitescroll({
navSelector : "#paginate",
nextSelector : "#nextPage",
itemSelector : ".holder",
debug: true,
appendCallback: false,
}, function(elements) {
elements.appendTo('#listContainer');
});
```

The issue I'm having is that even though the script is using the .ajax() method (with dataType defaulting to 'html'), anything within a