Closed jermshaw closed 13 years ago
The best route will be having your code bind to the "link" (ie, ) or submit button which loads the AJAX. You can initialize iscroll there.
Take a look at the demos\main\index.html example.
I'm having a similar problem. When I load dynamic content via AJAX, the content's height is wrong. So the scrolling doesn't work because it's forcing all the content into a short window. If I manually refresh the window through the console every resets and it works, but if I've tried binding the refresh to all sorts of places, but the refresh never seems to kick. (Console prints / alert in the binding will work, though.) Thoughts?
If your list is small, checkDOMChanges should work.
var scroll = new iScroll(contentid, { desktopCompatibility: true, bounce: true, momentum: true, checkDOMChanges: true });
Your fork works great for the most part! Great job.
One problem I would love some help with is when I link to a page that is loaded via AJAX, the iscrolling functionality seems to be disabled on the page that was loaded.
Any ideas about how to get around this?