Page 1 of 1

Facebook scrolling with reload?

Posted: Thu Feb 20, 2014 6:13 am
by andi

Hi

Do you know the facebook app?
How can i make such a scrolling?

1.) If i am on the top of the screen and scroll the content down, i see on the top an arrow, and the Text "scroll down to refresh the content"
If i scroll the content down, i get the text "Release to reload the content" - if i release now the content is reloaded.

2.) If i scroll to the end of the screen, the older messages and news are loaded ...

Is it possible the build it into the app?
I have a List with actualle 10 messages in the app - it would be very nice to reload the actual list, and load older messages .... :)


Facebook scrolling with reload?

Posted: Thu Feb 20, 2014 8:34 am
by Kateryna Grynko

Hi Andreas,

You can do this. Check if the page is scrolled and call service.


Facebook scrolling with reload?

Posted: Thu Feb 20, 2014 11:26 am
by andi

no it didn't work

first the OnScroll event isn't called on my device (Samsung S4)

and second if a am on top of the page how can i let the user scroll more so that i can see the reload text?


Facebook scrolling with reload?

Posted: Thu Feb 20, 2014 6:12 pm
by andi

The thing with scrolling works, with a javscript event i got it working.

Do you somewhere have an example for reloading data?
Specially i would like to append to a listview

I know i can't use the internal REST Services with mapping,
How is it possible to append (duplicate) such a listbox listitem block and fill it with data per javascript?


Facebook scrolling with reload?

Posted: Thu Feb 20, 2014 8:22 pm
by Maryna Brodina

Hello! Add JS on service Success event and add there any elements on page http://api.jquery.com/category/manipu...


Facebook scrolling with reload?

Posted: Thu Feb 20, 2014 8:27 pm
by andi

yes thanks

maybe you have an example, which clones the hidden template listitem and fill one item into the new generated listitem?


Facebook scrolling with reload?

Posted: Thu Feb 20, 2014 8:28 pm
by Maryna Brodina

Sorry, unfortunately we don't have example...