{"action":"created","issue":{"url":"https://api.github.com/repos/webcreate/infinite-ajax-scroll/issues/93","labels_url":"https://api.github.com/repos/webcreate/infinite-ajax-scroll/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/webcreate/infinite-ajax-scroll/issues/93/comments","events_url":"https://api.github.com/repos/webcreate/infinite-ajax-scroll/issues/93/events","html_url":"https://github.com/webcreate/infinite-ajax-scroll/issues/93","id":20305245,"number":93,"title":"Multi instance in one page","user":{"login":"sama55","id":556681,"avatar_url":"https://avatars.githubusercontent.com/u/556681?v=3","gravatar_id":"","url":"https://api.github.com/users/sama55","html_url":"https://github.com/sama55","followers_url":"https://api.github.com/users/sama55/followers","following_url":"https://api.github.com/users/sama55/following{/other_user}","gists_url":"https://api.github.com/users/sama55/gists{/gist_id}","starred_url":"https://api.github.com/users/sama55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sama55/subscriptions","organizations_url":"https://api.github.com/users/sama55/orgs","repos_url":"https://api.github.com/users/sama55/repos","events_url":"https://api.github.com/users/sama55/events{/privacy}","received_events_url":"https://api.github.com/users/sama55/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webcreate/infinite-ajax-scroll/labels/Critical","name":"Critical","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2013-10-01T02:31:58Z","updated_at":"2016-01-20T06:50:09Z","closed_at":null,"body":"Thank you great plugin. There are multiple page-navigation on \"one\" page in my site. It works almost well. However, I have one problem. Trigger tag (.ias_trigger [\"Load more items\"]) of B instance disappears by $(window) scroll of A.\r\n\r\n\"scrollContainer\" of A instance: $(window)\r\n\"scrollContainer\" of B instance: $('Unique ID')\r\n\r\nIt seems that trigger tag of IAS has CLASS (.ias_trigger) not ID.\r\n\r\nQuestion1: Is the multiple instance impossible in one page?\r\nQuestion2: Can I deal by onScroll() callback?\r\n\r\nBest regards."},"comment":{"url":"https://api.github.com/repos/webcreate/infinite-ajax-scroll/issues/comments/173110994","html_url":"https://github.com/webcreate/infinite-ajax-scroll/issues/93#issuecomment-173110994","issue_url":"https://api.github.com/repos/webcreate/infinite-ajax-scroll/issues/93","id":173110994,"user":{"login":"hitesh2088","id":4049398,"avatar_url":"https://avatars.githubusercontent.com/u/4049398?v=3","gravatar_id":"","url":"https://api.github.com/users/hitesh2088","html_url":"https://github.com/hitesh2088","followers_url":"https://api.github.com/users/hitesh2088/followers","following_url":"https://api.github.com/users/hitesh2088/following{/other_user}","gists_url":"https://api.github.com/users/hitesh2088/gists{/gist_id}","starred_url":"https://api.github.com/users/hitesh2088/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitesh2088/subscriptions","organizations_url":"https://api.github.com/users/hitesh2088/orgs","repos_url":"https://api.github.com/users/hitesh2088/repos","events_url":"https://api.github.com/users/hitesh2088/events{/privacy}","received_events_url":"https://api.github.com/users/hitesh2088/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T06:50:09Z","updated_at":"2016-01-20T06:50:09Z","body":"You can use the Link pager widget  with listview and add below jquery which will just replace ur next button to ur HTML;\r\n```javascript\r\n\r\n $(\"#pagination3 > .prev \").css(\"display\",\"none\");\r\n\r\n$(\"#pagination3 > .next3 > a\").click(function(e){\r\n     e.preventDefault();\r\n     \r\n     $.ajax({\r\n         url: $(this).attr(\"href\"),\r\n         type: \"get\",\r\n         success: function(data) {\r\n               var items =$(data).find(\"#list-wrapper3 > .item3\") ;\r\n               $(\"#list-wrapper3 \").append(items);\r\n             \r\n               if($(data).find(\"#pagination3 > li.next3\").hasClass(\"disabled\")){\r\n                 $(\"#pagination3 > .next3 > a\").remove();\r\n                 $(\"#pagination3 > .next3  \").text(\"No more items to display\");\r\n               }\r\n              else { \r\n               var next3 = $(data).find(\"#pagination > li.next3 > a\").attr(\"href\") ;              \r\n             $(\"#pagination3 > .next3 > a\").attr(\"href\",next3);\r\n             }\r\n\r\n         }\r\n     }); \r\n\r\n\r\n })\r\n ```\r\nand Linkpager will be below code\r\n```php\r\nLinkPager::widget([\r\n         'pagination' => $pages3,\r\n\r\n         'nextPageLabel' => 'Load more',\r\n         'nextPageCssClass'=>'load-more text-center next3',\r\n         'options'=>['tag'=>'div','class'=>'load-more','id'=>'pagination3' ],\r\n         'maxButtonCount'=> 0,\r\n               ]);  \r\n```         "}}