Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery infinite scroll "reset"
    primarykey
    data
    text
    <p>I'm using the infinite scroll jquery plugin for a website ( <a href="https://github.com/paulirish/infinite-scroll" rel="nofollow noreferrer">https://github.com/paulirish/infinite-scroll</a> )</p> <p>Everything is fine except that my page is a search so...what happen is:</p> <p>1) you go on the page, browser auto-locates you and give you back a list of items (eg. bars) around you...Infinite scroll is needed to avoid pagination for this list. Everything works until here...except the fact that i could reache the "end-of-the-infinite-page" and the plugin "unbinds" itself from the scroll.</p> <p>2) Now....when you want to manually insert an address in the input text, you are free to do it...you write your address, and press enter...and with ajax (<strong>no page refresh</strong>)...i'll look for lat/lon, locate the address, change the navigation link for the infinite scroll....and,i feel dumb, BUT i can't figure out a way to "reactivate" or "re-bind" the plugin to the event....So my "new search results" do not have a fresh "infinite scroll" instance...</p> <p>(page "split" correctly and correctly returns a json trying changing "page=NUMBER")</p> <p>This is what happens in the console:</p> <pre><code>["math:", 0, 468] jquery.infinitescroll.min.js:20["heading into ajax", Array[2] 0 : "/ajax/getCoworkings/?page=" 1 : "&amp;latitude=52.5234051&amp;longitude=13.4113999&amp;distance=12" length : 2 __proto__ : Array[0] ] jquery.infinitescroll.min.js:20["Using JSON via $.ajax() method"] jquery.infinitescroll.min.js:20["Error", "end"] jquery.infinitescroll.min.js:20["Binding", "unbind"] </code></pre> <p>After the "unbind" i'm not able to bind it again and therefore have the infinit scroll on my next search results........</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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