andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

Facebook scrolling with reload?

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 .... :)

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

Facebook scrolling with reload?

Hi Andreas,

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

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

Facebook scrolling with reload?

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?

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

Facebook scrolling with reload?

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Facebook scrolling with reload?

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

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

Facebook scrolling with reload?

yes thanks

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Facebook scrolling with reload?

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

Return to “Issues”