XModPro

Loading Ajax per page

Mandy Hodges Mandy Hodges asked Aug 20, 2014
Active Aug 20 · Viewed 3138 times
<p>Hi,</p><p>I have an event registration system set up. Each registration can have multiple attendees. There are around 300 registrations and a total of about 3000 attendee records.</p><p>I have a template set up for the registrations with one per page and I can load the attendee records for the registrations via ajax no problem.</p><p>It takes a long time though to load all the data (I am currently using a jquery each loop) and what I wanted to do was just load the attendee data a page at a time, rather than load all of it at once. So initially the template opens on page 1 with that registration's attendee information. When I click page 2 or next (for example), then I want it to load the attendee information for the next registration.</p><p>So my question is, how do i reference the pager buttons so I can use their click event to initiate the ajax call? Or is there some other event I can hook into to do what I need? I would need an event where I have access to the new page's registrationID field to make the ajax call.</p><p>Thank you for your assistance.</p><p>Mandy</p>

1 Answer

Loading answers...