Note that there are some explanatory texts on larger screens.

plurals
  1. POHow is it possible to run multiple instances using Backbone.Paginator.js?
    text
    copied!<p>I am trying to use <a href="https://github.com/addyosmani/backbone.paginator"><code>Backbone.Paginator.js</code></a> to run more than one app (multiple instances of paginator) on the same page.</p> <p><a href="http://dl.dropbox.com/u/19974044/backbone.paginator.zip">I created a test page.</a> (Navigate to <code>backbone.paginator/examples/netflix-infinite-paging</code>).</p> <p>I left the code as is for <code>app.js</code> and create <code>app2.js</code>, which is a clone of <code>app.js</code> but all the javascript code is located in one file and the app has been renamed to app2.</p> <p>Two instances work on first load of the page but subsequent request/refreshes only load app2.js's data.</p> <p><strong>Is it possible to run multiple instances on the same page?</strong></p> <ul> <li>I am interested in using an auto-paging (infinite/endless scroll) so I tried to use Paul Irish's <a href="https://github.com/paulirish/infinite-scroll/%5d%5b2%5d%29"><code>jQuery Infinite Scroll plugin</code></a> but I am unable to get it to work.</li> <li>I am initiating the plugin to run on document ready (which does not work, as expected), but also running the code in the app2's ResultView, which does not work as well.</li> </ul> <p>Any ideas on how to get an auto-paging infinite scroll solution?</p> <ul> <li>I ran into <a href="https://github.com/joneath/infiniScroll.js">https://github.com/joneath/infiniScroll.js</a> but I am not sure how to integrate it with Backbone.Paginator.js.</li> <li>I am still learning and any help would be greatly appreciated! :)</li> </ul> <hr> <p><strong>UPDATE:</strong> After further testing across different browsers, it seems like the problem might be to caching issue/differences. For example, in Safari, it works sometimes (randomly) when refreshing the page. I am not sure how to debug that. Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload