iscrollview

Jquery Mobile go back button scrolls to top

徘徊边缘 提交于 2019-11-29 08:58:18
In my Jquery Mobile website I am using href for back button like; <a id='{0}' class='{1}' href='/' data-role=""button"" data-icon=""arrow-l"" data-transition=""slide"" data-direction=""reverse""> but if I have scroll on first page, back button jumps back to top again. First page does not stay on same position. Is there any solution for this? Najeeb K Solution I had this issue i fixed it using iSroll While going from PageA to PageB save the scroll position of PageA in a variable. to do this modify the iscroll.js and add getScrollY method under scrollTo like this scrollTo : function(x, y, time,

Jquery Mobile go back button scrolls to top

感情迁移 提交于 2019-11-28 02:21:10
问题 In my Jquery Mobile website I am using href for back button like; <a id='{0}' class='{1}' href='/' data-role=""button"" data-icon=""arrow-l"" data-transition=""slide"" data-direction=""reverse""> but if I have scroll on first page, back button jumps back to top again. First page does not stay on same position. Is there any solution for this? 回答1: Solution I had this issue i fixed it using iSroll While going from PageA to PageB save the scroll position of PageA in a variable. to do this modify

fixed header scrolls/drags in jquery mobile

雨燕双飞 提交于 2019-11-27 21:42:10
I am working on mobile web app using jquery mobile and phonegap. I developed a hello world app. It has header, footer and contents area. Header and footer are fixed using data-position="fixed" attribute. But the problem with header and footer is, when I scroll down and when the contents a finished and there is not need to scroll anymore then its header drags down(for flexibility or indication and there are not more contents). As in other ios apps, this feature exists but in those apps the header and footer does not drags up and down the contents area only drags. Please see the picture what I

fixed header scrolls/drags in jquery mobile

心不动则不痛 提交于 2019-11-26 23:05:30
问题 I am working on mobile web app using jquery mobile and phonegap. I developed a hello world app. It has header, footer and contents area. Header and footer are fixed using data-position="fixed" attribute. But the problem with header and footer is, when I scroll down and when the contents a finished and there is not need to scroll anymore then its header drags down(for flexibility or indication and there are not more contents). As in other ios apps, this feature exists but in those apps the