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.110 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started