Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Lazy loading 28 Oct 2016 20:06 #14665

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
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

Please Log in or Create an account to join the conversation.

Lazy loading 30 Oct 2016 19:54 #14669

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 following user(s) said Thank You: MorganL

Please Log in or Create an account to join the conversation.

Lazy loading 01 Nov 2016 11:15 #14673

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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
The following user(s) said Thank You: MorganL

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.081 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started