appframework icon indicating copy to clipboard operation
appframework copied to clipboard

How to force refreshing the div after content have been added ?

Open lpfister opened this issue 13 years ago • 2 comments

Dear Team,

First of all thanks for the awesome works! Really exiting to try out this framework.

I am try to build a news page which get json data from a server.

On the event loadpanel, I do a ajax call to get the data, then I use dotjs to build my list of items from the server and finnaly I add the list to the panel.

However, the scroller does not work anymore (which is nromal as I will need to refresh it)

What is the best appreach here, adding the content before showing the page? (I do not know how to do that, but I guess I can manually stop the default event and then load the page) or Can i refresh the scroller ?

Thanks

lpfister avatar Aug 09 '13 05:08 lpfister

Hello,

It seems to work from the iPhone but not from the desktop. So I guess it is an issue with the desktop only ?

lpfister avatar Aug 09 '13 09:08 lpfister

http://app-framework-software.intel.com/api2/index.html#$_ui_updatePanel

iOS implements native scrolling. This is not supported on other devices (except BB 10), so we use a JS scroller. When you update a "panel", you wipe away the scrolling wrapper. This function updates the proper div (handles cases for iOS and JS scrollers)

imaffett avatar Aug 09 '13 11:08 imaffett