Welcome, Guest
Username: Password: Remember me

TOPIC: Lazy loading

Lazy loading 28 Oct 2016 20:06 #14665

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
So how would you do it? We have our paginated grid views but it would be nice to load them as you scroll down auto loading each item as you scroll further down. Anyone done it? And how?
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

Lazy loading 30 Oct 2016 19:54 #14669

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
I think I have used something like that in a project on www.prinsvanoranje.nl/en/yachts-for-sale/yachtdata.html
But I would have to check that

Now I would use a jQuery plugin for it I think.
www.google.nl/search?q=lazy+loading+jquery
But I don't know how I would do it :D
The administrator has disabled public write access.
The following user(s) said Thank You: MorganL

Lazy loading 01 Nov 2016 11:15 #14673

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
It is not so easy to achieve for a TABLE list.
First, I advice you to use a DIV stack (at the end it is more convenient)
Prepare a layout wich return few items using the pagination bounds, in a HTML format.
Test it separately.

Then, use jQuery to detect the scroll position, and then to load the layout through AJAX method.
You component includes some ajax functions wich will help you a lot for sending a request to your component.

This is something I should add in cook, because it is a great feature idea and it is so long to explain how to achieve all the steps.
Coding is now a piece of cake
Last Edit: 01 Nov 2016 11:17 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: MorganL
Time to create page: 0.101 seconds

Get Started