Author Topic: When invoking new page by scroll down from infinite_scroll  (Read 2010 times)

kjvjung

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 33
    • View Profile
When invoking new page by scroll down from infinite_scroll
« on: September 05, 2017, 07:14:49 pm »

Hello.

New page call by scroll down in infinite_scroll: What do you know?

I will explain in detail.

             postData: function () {
debugger; // What can I tell if it was called by scroll down?
                 return {
                     pq_curpage: pqIS.requestPage,
                     pq_rpp: pqIS.rpp
                 };
             },

I see 100 lines at first, and when I scroll down, I see 100 lines again.
What are the characteristics of this time? How do I know from the debugger above?
When you scroll down, postData is called. What variables can I see at this time?

For example, instead of debugger, console.log (....)

url : https://paramquery.com/pro/demos/infinite_scroll


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6113
    • View Profile
Re: When invoking new page by scroll down from infinite_scroll
« Reply #1 on: September 05, 2017, 09:51:19 pm »
That's right, postData is called whenever more rows are requested from remote server.

beforeTableView -> if more rows are required -> this.refreshDataAndView(); -> postData()

kjvjung

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: When invoking new page by scroll down from infinite_scroll
« Reply #2 on: September 05, 2017, 10:59:58 pm »
thank you  ;D :) ;)