cvc
Posts: 0
Joined: Sat Nov 09, 2013 5:12 am

aligning texts in chat page

on it. will let you know.

cvc
Posts: 0
Joined: Sat Nov 09, 2013 5:12 am

aligning texts in chat page

that wasn't particularly helpful or actually I couldn't figure out how to integrate it. Actually that's the problem I'm having with this. material also.
http://dl.dropboxusercontent.com/u/83...

If anyone has implemented one before can you point me to what they did?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

aligning texts in chat page

  1. You need to add "jQuery lazy scroll loading plugin" into the project
    http://docs.appery.io/documentation/u...
    https://code.google.com/p/jquerylazys...
    1. Put JS code from usage section to your project.
cvc
Posts: 0
Joined: Sat Nov 09, 2013 5:12 am

aligning texts in chat page

Hi Igor
I added the plugin and this function:

$(".doz_chat_messageBody_wrapper").lazyScrollLoading({
lazyItemSelector : ".doz_chat_messageBody",
onLazyItemFirstVisible : function(e, $lazyItems, $firstVisibleLazyItems) {
$firstVisibleLazyItems.each(function() {
this.innerHTML = this.getAttribute("lazy-text");
});
}
}); on page load.

I'm not sure how to use "this.getAttribute("lazy-text");" but it's not working.

cvc
Posts: 0
Joined: Sat Nov 09, 2013 5:12 am

aligning texts in chat page

Basically I'm adding chatting to my app and I don't want to list all previous chats at once as that slows the app significantly.
I want to list just enough to fill the screen and then on scrolling, load more previous chats.

Can you point me in the right direction?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

aligning texts in chat page

Hi,

Please try this example "Simple demo: Window scroll to the end" from http://dl.dropboxusercontent.com/u/83...

cvc
Posts: 0
Joined: Sat Nov 09, 2013 5:12 am

aligning texts in chat page

Hi Katya
that's the precise plugin I've tried. I added the plugin and the code below on page load:

$(".doz_chat_messageBody_wrapper").lazyScrollLoading({
lazyItemSelector : ".doz_chat_messageBody",
onLazyItemFirstVisible : function(e, $lazyItems, $firstVisibleLazyItems) {
$firstVisibleLazyItems.each(function() {
this.innerHTML = this.getAttribute("lazy-text");
});
}
});

It's not working for me.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

aligning texts in chat page

Are there any console errors (F12)? What do you store in variables $lazyItems, $firstVisibleLazyItem etc?

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

aligning texts in chat page

Hi!
Im following this post, to implement infinite scrolling.

  1. I create a JS asset with this file:
    jquery.lazyscrollloading-min

  2. Now I need help on how to use this code (for the simple demo):
    code $(document).ready(function() {
    $("#lazyScrollLoading").lazyScrollLoading({
    lazyItemSelector : ".lazyItem",
    onLazyItemFirstVisible : function(e, $lazyItems, $firstVisibleLazyItems) {
    $firstVisibleLazyItems.each(function() {
    this.innerHTML = this.getAttribute("data-lazytext");
    });
    }
    });
    }); code

    can any body guide me on how to achieve this?

    Regards/code/code

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

aligning texts in chat page

Hi Alex,

Did you add HTML component with this layout?
https://code.google.com/p/jquerylazys...

Return to “Issues”